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)

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 to top
Show: