RangeAttribute.ConvertValueInInvariantCulture Property
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
true
to use the invariant culture for any conversions; false
to use the culture that is current at the time of the validation.
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.
Termék | Verziók |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
.NET-visszajelzés
A(z) .NET egy nyílt forráskód projekt. Visszajelzés adásához válasszon egy hivatkozást: