Windows Dev Center

DateTimeFormatInfo.ReadOnly Method

Returns a read-only DateTimeFormatInfo wrapper.

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

public static DateTimeFormatInfo ReadOnly(
	DateTimeFormatInfo dtfi
)

Return Value

Type: System.Globalization.DateTimeFormatInfo
A read-only DateTimeFormatInfo wrapper around dtfi.

ExceptionCondition
ArgumentNullException

dtfi is null.

This wrapper prevents any modifications to dtfi.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft