IValidationRuleViolationCollection.AddRange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.