Class CalendarFolder
- Namespace
- Microsoft.Exchange.WebServices.Data
- Assembly
- Microsoft.Exchange.WebServices.dll
Represents a folder containing appointments.
public class CalendarFolder : Folder
- Inheritance
-
CalendarFolder
- Inherited Members
Constructors
CalendarFolder(ExchangeService)
Initializes an unsaved local instance of CalendarFolder. To bind to an existing calendar folder, use CalendarFolder.Bind() instead.
public CalendarFolder(ExchangeService service)
Parameters
service
ExchangeServiceThe ExchangeService object to which the calendar folder will be bound.
Methods
Bind(ExchangeService, FolderId)
Binds to an existing calendar folder and loads its first class properties. Calling this method results in a call to EWS.
public static CalendarFolder Bind(ExchangeService service, FolderId id)
Parameters
service
ExchangeServiceThe service to use to bind to the calendar folder.
id
FolderIdThe Id of the calendar folder to bind to.
Returns
- CalendarFolder
A CalendarFolder instance representing the calendar folder corresponding to the specified Id.
Bind(ExchangeService, FolderId, PropertySet)
Binds to an existing calendar folder and loads the specified set of properties. Calling this method results in a call to EWS.
public static CalendarFolder Bind(ExchangeService service, FolderId id, PropertySet propertySet)
Parameters
service
ExchangeServiceThe service to use to bind to the calendar folder.
id
FolderIdThe Id of the calendar folder to bind to.
propertySet
PropertySetThe set of properties to load.
Returns
- CalendarFolder
A CalendarFolder instance representing the calendar folder corresponding to the specified Id.
Bind(ExchangeService, WellKnownFolderName)
Binds to an existing calendar folder and loads its first class properties. Calling this method results in a call to EWS.
public static CalendarFolder Bind(ExchangeService service, WellKnownFolderName name)
Parameters
service
ExchangeServiceThe service to use to bind to the calendar folder.
name
WellKnownFolderNameThe name of the calendar folder to bind to.
Returns
- CalendarFolder
A CalendarFolder instance representing the calendar folder with the specified name.
Bind(ExchangeService, WellKnownFolderName, PropertySet)
Binds to an existing calendar folder and loads the specified set of properties. Calling this method results in a call to EWS.
public static CalendarFolder Bind(ExchangeService service, WellKnownFolderName name, PropertySet propertySet)
Parameters
service
ExchangeServiceThe service to use to bind to the calendar folder.
name
WellKnownFolderNameThe name of the calendar folder to bind to.
propertySet
PropertySetThe set of properties to load.
Returns
- CalendarFolder
A CalendarFolder instance representing the calendar folder with the specified name.
FindAppointments(CalendarView)
Obtains a list of appointments by searching the contents of this folder and performing recurrence expansion for recurring appointments. Calling this method results in a call to EWS.
public FindItemsResults<Appointment> FindAppointments(CalendarView view)
Parameters
view
CalendarViewThe view controlling the range of appointments returned.
Returns
- FindItemsResults<Appointment>
An object representing the results of the search operation.