IValidationRuleViolationCollection.Add Method (IValidationRuleViolation)
Adds a rule violation to the rule violations collection.
Namespace: Microsoft.VisualStudio.SharePoint.Validation
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Sub Add ( _
ruleViolation As IValidationRuleViolation _
)
void Add(
IValidationRuleViolation ruleViolation
)
Parameters
ruleViolation
Type: Microsoft.VisualStudio.SharePoint.Validation.IValidationRuleViolationThe rule violation to add to the collection.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.