ValidationController.CreateValidationContext Method (IEnumerable<ModelElement>, ValidationCategories)
Creates a validation context for validation of a list of elements.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Protected Overridable Function CreateValidationContext ( _
subjects As IEnumerable(Of ModelElement), _
categories As ValidationCategories _
) As ValidationContext
protected virtual ValidationContext CreateValidationContext(
IEnumerable<ModelElement> subjects,
ValidationCategories categories
)
protected:
virtual ValidationContext^ CreateValidationContext(
IEnumerable<ModelElement^>^ subjects,
ValidationCategories categories
)
abstract CreateValidationContext :
subjects:IEnumerable<ModelElement> *
categories:ValidationCategories -> ValidationContext
override CreateValidationContext :
subjects:IEnumerable<ModelElement> *
categories:ValidationCategories -> ValidationContext
protected function CreateValidationContext(
subjects : IEnumerable<ModelElement>,
categories : ValidationCategories
) : ValidationContext
Parameters
subjects
Type: System.Collections.Generic.IEnumerable<ModelElement>Each validation method in any of the specified categories will be applied to each model element in this collection.
categories
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationCategoriesSpecifies which validation methods will be applied. A validation method is applied if it has a ValidationMethod attribute that specifies one of the categories in this collection.
Return Value
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationContext
.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.