RangeAttribute.ConvertValueInInvariantCulture 屬性

定義

取得或設定值,這個值會決定由建構函式的 參數RangeAttribute(Type, String, String)所設定OperandTypetype的任何值轉換是否使用不變異文化特性或目前的文化特性。

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

屬性值

true 表示使用非變異文化特性進行任何轉換; false 表示使用驗證時目前的文化特性。

備註

此屬性對具有 Int32Double 參數的建構函式沒有任何作用,其一律會針對已驗證值的任何轉換使用不變異文化特性。

適用於