Calendar::ReadOnly Method (Calendar^)
.NET Framework (current version)
Returns a read-only version of the specified Calendar object.
Assembly: mscorlib (in mscorlib.dll)
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
Available since 2.0
Show: