ValidationMethodAttribute 类

定义

C # 自定义特性 ValidationMethod 的类定义。 这用于将 methnods 标记为验证程序函数

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
继承
ValidationMethodAttribute
属性

构造函数

ValidationMethodAttribute()

类 ValidationMethodAttribute 的构造函数。 默认情况下指定用户验证方法

ValidationMethodAttribute(ValidationCategories)

类 ValidationMethodAttribute 的构造函数。 默认情况下指定用户验证方法

属性

Categories

此方法的类别

CustomCategory

获取/设置自定义字符串以支持自定义验证。

适用于