コード例 #1
0
 /// <summary>
 /// Binds to an existing calendar folder and loads the specified set of properties.
 /// Calling this method results in a call to EWS.
 /// </summary>
 /// <param name="service">The service to use to bind to the calendar folder.</param>
 /// <param name="id">The Id of the calendar folder to bind to.</param>
 /// <param name="propertySet">The set of properties to load.</param>
 /// <returns>A CalendarFolder instance representing the calendar folder corresponding to the specified Id.</returns>
 public static new Task <CalendarFolder> Bind(
     ExchangeService service,
     FolderId id,
     PropertySet propertySet)
 {
     return(service.BindToFolder <CalendarFolder>(id, propertySet));
 }
コード例 #2
0
 /// <summary>
 /// Binds to an existing folder, whatever its actual type is, and loads the specified set of properties.
 /// Calling this method results in a call to EWS.
 /// </summary>
 /// <param name="service">The service to use to bind to the folder.</param>
 /// <param name="id">The Id of the folder to bind to.</param>
 /// <param name="propertySet">The set of properties to load.</param>
 /// <returns>A Folder instance representing the folder corresponding to the specified Id.</returns>
 public static Folder Bind(
     ExchangeService service,
     FolderId id,
     PropertySet propertySet)
 {
     return(service.BindToFolder <Folder>(id, propertySet));
 }
コード例 #3
0
 /// <summary>
 /// Binds to an existing search folder and loads the specified set of properties.
 /// Calling this method results in a call to EWS.
 /// </summary>
 /// <param name="service">The service to use to bind to the search folder.</param>
 /// <param name="id">The Id of the search folder to bind to.</param>
 /// <param name="propertySet">The set of properties to load.</param>
 /// <returns>A SearchFolder instance representing the search folder corresponding to the specified Id.</returns>
 public static new Task<SearchFolder> Bind(
     ExchangeService service,
     FolderId id,
     PropertySet propertySet)
 {
     return service.BindToFolder<SearchFolder>(id, propertySet);
 }
コード例 #4
0
 /// <summary>
 /// Binds to an existing tasks folder and loads the specified set of properties.
 /// Calling this method results in a call to EWS.
 /// </summary>
 /// <param name="service">The service to use to bind to the tasks folder.</param>
 /// <param name="id">The Id of the tasks folder to bind to.</param>
 /// <param name="propertySet">The set of properties to load.</param>
 /// <returns>A TasksFolder instance representing the task folder corresponding to the specified Id.</returns>
 public static new Task <TasksFolder> Bind(
     ExchangeService service,
     FolderId id,
     PropertySet propertySet,
     CancellationToken token = default(CancellationToken))
 {
     return(service.BindToFolder <TasksFolder>(id, propertySet, token));
 }