Export (0) Print
Expand All

Calendar.ReadOnly Method

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
)
/** @attribute ComVisibleAttribute(false) */ 
public static Calendar ReadOnly (
	Calendar calendar
)
ComVisibleAttribute(false) 
public static function ReadOnly (
	calendar : Calendar
) : Calendar
Not applicable.

Parameters

calendar

A Calendar object.

Return Value

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 typeCondition

ArgumentNullException

calendar is a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft