NumberFormatInfo.ReadOnly(NumberFormatInfo) Methode
Definition
Gibt einen schreibgeschützten NumberFormatInfo-Wrapper zurück.Returns a read-only NumberFormatInfo wrapper.
public:
static System::Globalization::NumberFormatInfo ^ ReadOnly(System::Globalization::NumberFormatInfo ^ nfi);
public static System.Globalization.NumberFormatInfo ReadOnly (System.Globalization.NumberFormatInfo nfi);
static member ReadOnly : System.Globalization.NumberFormatInfo -> System.Globalization.NumberFormatInfo
Public Shared Function ReadOnly (nfi As NumberFormatInfo) As NumberFormatInfo
Parameter
- nfi
- NumberFormatInfo
Die zu umschließende NumberFormatInfo.The NumberFormatInfo to wrap.
Gibt zurück
Ein schreibgeschützter NumberFormatInfo-Wrapper um nfi
.A read-only NumberFormatInfo wrapper around nfi
.
Ausnahmen
nfi
ist null
.nfi
is null
.
Hinweise
Dieser Wrapper verhindert Änderungen an nfi
.This wrapper prevents any modifications to nfi
.
Wenn Sie NumberFormatInfo versuchen, eine Zuweisung zu einer Eigenschaft eines schreibgeschützten auszuführen, wird InvalidOperationExceptioneine ausgelöst.Attempting to perform an assignment to a property of a read-only NumberFormatInfo causes an InvalidOperationException.