ReadOnly Method
Collapse the table of content
Expand the table of content

NumberFormatInfo.ReadOnly Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a read-only NumberFormatInfo wrapper.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Shared Function ReadOnly ( _
	nfi As NumberFormatInfo _
) As NumberFormatInfo

Return Value

Type: System.Globalization.NumberFormatInfo
A read-only NumberFormatInfo wrapper around nfi.

ExceptionCondition
ArgumentNullException

nfi is Nothing.

This wrapper prevents any modifications to nfi.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft