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