Export (0) Print
Expand All

NumberFormatInfo.ReadOnly Method

Returns a read-only NumberFormatInfo wrapper.

[Visual Basic]
Public Shared Function ReadOnly( _
   ByVal nfi As NumberFormatInfo _
) As NumberFormatInfo
[C#]
public static NumberFormatInfo ReadOnly(
 NumberFormatInfo nfi
);
[C++]
public: static NumberFormatInfo* ReadOnly(
 NumberFormatInfo* nfi
);
[JScript]
public static function ReadOnly(
   nfi : NumberFormatInfo
) : NumberFormatInfo;

Parameters

nfi
The NumberFormatInfo to wrap.

Return Value

A read-only NumberFormatInfo wrapper around nfi.

Exceptions

Exception Type Condition
ArgumentNullException nfi is a null reference (Nothing in Visual Basic).

Remarks

This wrapper prevents any modifications to nfi.

Attempting to perform an assignment to a property of a read-only NumberFormatInfo causes an InvalidOperationException.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

NumberFormatInfo Class | NumberFormatInfo Members | System.Globalization Namespace | IsReadOnly

Show:
© 2014 Microsoft