Calendar.ReadOnly(Calendar) Method

Definition

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

C#
public static System.Globalization.Calendar ReadOnly(System.Globalization.Calendar calendar);
C#
[System.Runtime.InteropServices.ComVisible(false)]
public static System.Globalization.Calendar ReadOnly(System.Globalization.Calendar calendar);

Parameters

calendar
Calendar

A Calendar object.

Returns

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.

Attributes

Exceptions

calendar is null.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also