RangeAttribute.ConvertValueInInvariantCulture Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that determines whether any conversions of the value being validated to OperandType as set by the type
parameter of the RangeAttribute(Type, String, String) constructor use the invariant culture or the current culture.
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
Property Value
true
to use the invariant culture for any conversions; false
to use the culture that is current at the time of the validation.
Remarks
This property has no effect on the constructors with Int32 or Double parameters, which always use the invariant culture for any conversions of the validated value.