ValidationAttribute.RequiresValidationContext 属性

定义

获取指示特性是否要求验证上下文的值。Gets a value that indicates whether the attribute requires validation context.

public:
 virtual property bool RequiresValidationContext { bool get(); };
public virtual bool RequiresValidationContext { get; }
member this.RequiresValidationContext : bool
Public Overridable ReadOnly Property RequiresValidationContext As Boolean

属性值

Boolean

如果特性需要验证上下文,则为 true;否则为 falsetrue if the attribute requires validation context; otherwise, false.

适用于