ValidationContext.Categories Property
Gets the validation categories for this validation context.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
Public ReadOnly Property Categories As ValidationCategories
Get
public ValidationCategories Categories { get; }
public:
property ValidationCategories Categories {
ValidationCategories get ();
}
member Categories : ValidationCategories
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.