Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Calendar::ReadOnly Method (Calendar^)

 

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

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

public:
[ComVisibleAttribute(false)]
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:
© 2017 Microsoft