ReadOnly Method

Calendar.ReadOnly Method (Calendar)

 

Returns a read-only version of the specified Calendar object.

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

[ComVisibleAttribute(false)]
public static Calendar ReadOnly(
	Calendar calendar
)

Parameters

calendar
Type: System.Globalization.Calendar

A Calendar object.

Return Value

Type: System.Globalization.Calendar

The Calendar object specified by the calendar parameter, if calendar is read-only.

-or-

A read-only memberwise clone of the Calendar object specified by calendar, if calendar is not read-only.

Exception Condition
ArgumentNullException

calendar is null.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft