Share via


IValidationRuleViolationCollection Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a collection of validation rule violations.

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

Syntax

'Declaration
Public Interface IValidationRuleViolationCollection _
    Inherits ISharePointCollection(Of IValidationRuleViolation), INotifyCollectionChanged, INotifyPropertyChanged,  _
    IEnumerable(Of IValidationRuleViolation), IEnumerable
public interface IValidationRuleViolationCollection : ISharePointCollection<IValidationRuleViolation>, 
    INotifyCollectionChanged, INotifyPropertyChanged, IEnumerable<IValidationRuleViolation>, IEnumerable

The IValidationRuleViolationCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of items in the collection. (Inherited from ISharePointCollection<T>.)

Top

Methods

  Name Description
Public method Add(IValidationRuleViolation) Adds a rule violation to the rule violations collection.
Public method Add(String, ValidationRuleViolationSeverity, String) Adds a rule violation to the rule violations collection.
Public method Add(String, ValidationRuleViolationSeverity, String, String, ISharePointProject, String) Adds a rule violation to the rule violations collection.
Public method AddRange Adds a collection of rule violations to the rule violations collection.
Public method Contains Gets whether the provided item is a member of this collection. (Inherited from ISharePointCollection<T>.)
Public method CopyTo Copies items from this collection into an array. (Inherited from ISharePointCollection<T>.)
Public method GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<IValidationRuleViolation>.)

Top

Events

  Name Description
Public event CollectionChanged Occurs when the collection changes. (Inherited from INotifyCollectionChanged.)
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

See Also

Reference

Microsoft.VisualStudio.SharePoint.Validation Namespace