Share via


IValidationContext.RuleViolations Property

Gets the current collection of validation rule violations.

Namespace:  Microsoft.VisualStudio.SharePoint.Validation
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
ReadOnly Property RuleViolations As IValidationRuleViolationCollection
IValidationRuleViolationCollection RuleViolations { get; }

Property Value

Type: Microsoft.VisualStudio.SharePoint.Validation.IValidationRuleViolationCollection
An object representing validation rule violations.

Remarks

Validation rules should add this collection as violations are found.

.NET Framework Security

See Also

Reference

IValidationContext Interface

Microsoft.VisualStudio.SharePoint.Validation Namespace