RangeAttribute.ConvertValueInInvariantCulture 属性

定义

获取或设置一个值,该值确定将要验证的值转换为由 RangeAttribute(Type, String, String) 构造函数的 type 参数设置的 OperandType 是使用固定区域性还是当前区域性。

public:
 property bool ConvertValueInInvariantCulture { bool get(); void set(bool value); };
public bool ConvertValueInInvariantCulture { get; set; }
member this.ConvertValueInInvariantCulture : bool with get, set
Public Property ConvertValueInInvariantCulture As Boolean

属性值

Boolean

true 将固定区域性用于任何转换; false 若要使用验证时当前区域性,则为 。

注解

此属性对具有 Int32Double 参数的构造函数没有影响,这些构造函数始终使用固定区域性进行验证值的任何转换。

适用于