Share via


IValidationRuleViolationCollection.AddRange Method

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

  • ruleViolations
    Type: IEnumerable<IValidationRuleViolation>

    The collection of rule violations to add to the collection.

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