Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the type of calendar that is used to display the field.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableConstraintAttribute(FixedId := "1", Type := ClientCallableConstraintType.Custom, Value := "If the list has an external data source, the value MUST be CalendarType.None")> _
<ClientCallableAttribute(Name := "DateTimeCalendarType")> _
Public Property CalendarType As SPCalendarType
Get
Set
'Usage
Dim instance As SPFieldDateTime
Dim value As SPCalendarType
value = instance.CalendarType
instance.CalendarType = value
[ClientCallableConstraintAttribute(FixedId = "1", Type = ClientCallableConstraintType.Custom, Value = "If the list has an external data source, the value MUST be CalendarType.None")]
[ClientCallableAttribute(Name = "DateTimeCalendarType")]
public SPCalendarType CalendarType { get; set; }
Property Value
Type: Microsoft.SharePoint.SPCalendarType
A Microsoft.SharePoint.SPCalendarType value that specifies the type of calendar.