ValidationController::Validate Method (IEnumerable<ModelElement^>^, ValidationCategories)

 

Apply validation methods to every model element in a list. Methods will be invoked that have a ValidationMethod attribute for one or more of the specified Categories.

Namespace:   Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

public:
virtual bool Validate(
	IEnumerable<ModelElement^>^ subjects,
	ValidationCategories categories
)

Parameters

subjects
Type: System.Collections.Generic::IEnumerable<ModelElement^>^

The list of elements to validate

categories
Type: Microsoft.VisualStudio.Modeling.Validation::ValidationCategories

Specifies which validation methods will be invoked.

Return Value

Type: System::Boolean
Return to top
Show: