Partager via


ValidationMethodAttribute.CustomCategory Property

Gets or sets the custom validation category, which can be empty.

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

Syntax

'Declaration
Public Property CustomCategory As String
public string CustomCategory { get; set; }
public:
property String^ CustomCategory {
    String^ get ();
    void set (String^ value);
}
member CustomCategory : string with get, set
function get CustomCategory () : String 
function set CustomCategory (value : String)

Property Value

Type: System.String
The custom category set by the validation method attribute.

Remarks

For more information, see [redirect] Walkthrough: Adding Custom Validation to a Domain Model.

.NET Framework Security

See Also

Reference

ValidationMethodAttribute Class

Microsoft.VisualStudio.Modeling.Validation Namespace