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
ruleViolations
Type: System.Collections.Generic.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.