Share via


ValidationContext.Categories Property

Gets the validation categories for this validation context.

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

Syntax

'Declaration
Public ReadOnly Property Categories As ValidationCategories
'Usage
Dim instance As ValidationContext 
Dim value As ValidationCategories 

value = instance.Categories
public ValidationCategories Categories { get; }
public:
property ValidationCategories Categories {
    ValidationCategories get ();
}
public function get Categories () : ValidationCategories

Property Value

Type: Microsoft.VisualStudio.Modeling.Validation.ValidationCategories

Remarks

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.

.NET Framework Security

See Also

Reference

ValidationContext Class

ValidationContext Members

Microsoft.VisualStudio.Modeling.Validation Namespace