ValidationMethodAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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 |
获取/设置自定义字符串以支持自定义验证。 |