Share via


IValidationRuleViolationCollection.AddRange Method

Definition

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

public:
 void AddRange(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::SharePoint::Validation::IValidationRuleViolation ^> ^ ruleViolations);
public void AddRange (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.SharePoint.Validation.IValidationRuleViolation> ruleViolations);
abstract member AddRange : seq<Microsoft.VisualStudio.SharePoint.Validation.IValidationRuleViolation> -> unit
Public Sub AddRange (ruleViolations As IEnumerable(Of IValidationRuleViolation))

Parameters

ruleViolations
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.

Applies to