ValidationController::ValidateCustom Method (IEnumerable<ModelElement^>^, array<String^>^)

 

Apply validation methods to each element in the collection. Each validation method in any of the chosen categories is applied to each element in the list. A validation method is in a category if it has a ValidationMethod attribute that specifies the category.

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

public:
virtual bool ValidateCustom(
	IEnumerable<ModelElement^>^ subjects,
	... array<String^>^ customCategories
)

Parameters

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

Model elements to be validated. Each validation method in any of the chosen categories is applied to each element in the list.

customCategories
Type: array<System::String^>^

Specifies which validation methods are to be applied to the subjects. A validation method is applied if it has a ValidationMethod attributes that specifies any of the custom categories in this collection.

Return Value

Type: System::Boolean
Return to top
Show: