Share via


ValidationMethodAttribute Class

Definition

Class definition for C# custom attribute ValidationMethod. This is used for marking methnods as Validator functions

public ref class ValidationMethodAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class ValidationMethodAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type ValidationMethodAttribute = class
    inherit Attribute
Public NotInheritable Class ValidationMethodAttribute
Inherits Attribute
Inheritance
ValidationMethodAttribute
Attributes

Constructors

ValidationMethodAttribute()

Constructor for class ValidationMethodAttribute. Specifies a user-validation method by default

ValidationMethodAttribute(ValidationCategories)

Constructor for class ValidationMethodAttribute. Specifies a user-validation method by default

Properties

Categories

The category of this method

CustomCategory

Get/Set custom string to support custom validation.

Applies to