Share via


SPCalendarItem constructor (Int32, DateTime, DateTime, Boolean, Boolean, String, String, String, String, Boolean, Boolean, String, String, String)

Initializes a new instance of the SPCalendarItem class by using the specified parameters.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    calendarType As Integer, _
    startDate As DateTime, _
    endDate As DateTime, _
    hasEndDate As Boolean, _
    bAllDayEvent As Boolean, _
    title As String, _
    itemID As String, _
    desc As String, _
    location As String, _
    bRecurrence As Boolean, _
    bRecurrenceExc As Boolean, _
    workspaceLink As String, _
    dispFormUrl As String, _
    direction As String _
)
'Usage
Dim calendarType As Integer
Dim startDate As DateTime
Dim endDate As DateTime
Dim hasEndDate As Boolean
Dim bAllDayEvent As Boolean
Dim title As String
Dim itemID As String
Dim desc As String
Dim location As String
Dim bRecurrence As Boolean
Dim bRecurrenceExc As Boolean
Dim workspaceLink As String
Dim dispFormUrl As String
Dim direction As String

Dim instance As New SPCalendarItem(calendarType, _
    startDate, endDate, hasEndDate, bAllDayEvent, _
    title, itemID, desc, location, bRecurrence, _
    bRecurrenceExc, workspaceLink, dispFormUrl, _
    direction)
public SPCalendarItem(
    int calendarType,
    DateTime startDate,
    DateTime endDate,
    bool hasEndDate,
    bool bAllDayEvent,
    string title,
    string itemID,
    string desc,
    string location,
    bool bRecurrence,
    bool bRecurrenceExc,
    string workspaceLink,
    string dispFormUrl,
    string direction
)

Parameters

  • hasEndDate
    Type: System.Boolean

    true if the calendar item has an end date; otherwise, false.

  • bAllDayEvent
    Type: System.Boolean

    true if the calendar item is an all-day event; otherwise, false.

  • location
    Type: System.String

    The location of the calendar item.

  • bRecurrence
    Type: System.Boolean

    true if the calendar item is a recurring calendar item; otherwise, false.

  • bRecurrenceExc
    Type: System.Boolean

    true if the calendar item is an exception to a recurring calendar item; otherwise, false.

  • workspaceLink
    Type: System.String

    The workspace link for the calendar item.

  • dispFormUrl
    Type: System.String

    The URL for the display form of the calendar item.

  • direction
    Type: System.String

    The reading direction of the calendar item.

See also

Reference

SPCalendarItem class

SPCalendarItem members

SPCalendarItem overload

Microsoft.SharePoint.WebControls namespace