Compartir a través de


IValidationRuleViolationCollection.AddRange Method

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

Adds a collection of rule violations to the rule violations collection.

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

Syntax

'Declaration
Sub AddRange ( _
    ruleViolations As IEnumerable(Of IValidationRuleViolation) _
)
void AddRange(
    IEnumerable<IValidationRuleViolation> ruleViolations
)

Parameters

Remarks

This method can be useful when projecting one type of error to the packaging rule violation type by using LINQ.

.NET Framework Security

See Also

Reference

IValidationRuleViolationCollection Interface

Microsoft.VisualStudio.SharePoint.Validation Namespace