ValidationController::CreateValidationContext Method (IEnumerable<ModelElement^>^, array<String^>^)
Visual Studio 2015
Create a context for validation of a collection of model elements. Every validation method that belongs to any of the specified custom categories will be applied to every element in the subjects list.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
protected: virtual ValidationContext^ CreateValidationContext( IEnumerable<ModelElement^>^ subjects, array<String^>^ customCategories )
Parameters
- subjects
-
Type:
System.Collections.Generic::IEnumerable<ModelElement^>^
The model elements to which validation methods will be applied.
- customCategories
-
Type:
array<System::String^>^
A validation method will be applied if it has a ValidationMethod attribute that specifies one of the custom categories in this collection.
Return Value
Type: Microsoft.VisualStudio.Modeling.Validation::ValidationContext^
Show: