ValidationController::CreateValidationContext Method (IEnumerable<ModelElement^>^, ValidationCategories)
Visual Studio 2015
Creates a validation context for validation of a list of elements.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
protected: virtual ValidationContext^ CreateValidationContext( IEnumerable<ModelElement^>^ subjects, ValidationCategories categories )
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::ValidationCategories
Specifies 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^
Show: