ValidationContext::Categories Property

 

Gets the validation categories for this validation context.

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

public:
property ValidationCategories Categories {
	ValidationCategories get();
}

The validation category indicates which types of actions invoked the validation.

The validation category can combine one or more of these values:

  • Custom - Indicates that the method is a custom validation method.

  • Debug - Indicates that the method is invoked when Visual Studio is in debug mode.

  • Menu - Indicates that the method is invoked when a user clicks a command on a shortcut menu.

  • Load - Indicates that the method is invoked before a user opens a file.

  • Open - Indicates that the method is invoked when a user opens a file.

  • Save - Indicates that the method is invoked when a user saves a file.

Return to top
Show: