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)
Available in Sandboxed Solutions: No
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
calendarType
Type: System.Int32The calendar type.
startDate
Type: System.DateTimeThe start date of the calendar item.
endDate
Type: System.DateTimeThe end date of the calendar item.
hasEndDate
Type: System.Booleantrue if the calendar item has an end date; otherwise, false.
bAllDayEvent
Type: System.Booleantrue if the calendar item is an all-day event; otherwise, false.
title
Type: System.StringThe title of the calendar item.
itemID
Type: System.StringThe item ID of the calendar item.
desc
Type: System.StringThe description of the calendar item.
location
Type: System.StringThe location of the calendar item.
bRecurrence
Type: System.Booleantrue if the calendar item is a recurring calendar item; otherwise, false.
bRecurrenceExc
Type: System.Booleantrue if the calendar item is an exception to a recurring calendar item; otherwise, false.
workspaceLink
Type: System.StringThe workspace link for the calendar item.
dispFormUrl
Type: System.StringThe URL for the display form of the calendar item.
direction
Type: System.StringThe reading direction of the calendar item.