Share via


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)

Syntax

'Declaration
Public ReadOnly Property Categories As ValidationCategories
public ValidationCategories Categories { get; }
public:
property ValidationCategories Categories {
    ValidationCategories get ();
}
member Categories : ValidationCategories with get
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

Microsoft.VisualStudio.Modeling.Validation Namespace