Esempio n. 1
0
 /// <summary>
 /// Binds to an existing calendar folder and loads its first class 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="name">The name of the calendar folder to bind to.</param>
 /// <returns>A CalendarFolder instance representing the calendar folder with the specified name.</returns>
 public static new Task <CalendarFolder> Bind(ExchangeService service, WellKnownFolderName name)
 {
     return(CalendarFolder.Bind(
                service,
                new FolderId(name),
                PropertySet.FirstClassProperties));
 }
Esempio n. 2
0
 /// <summary>
 /// Binds to an existing calendar folder and loads its first class 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>
 /// <returns>A CalendarFolder instance representing the calendar folder corresponding to the specified Id.</returns>
 public static new Task <CalendarFolder> Bind(ExchangeService service, FolderId id)
 {
     return(CalendarFolder.Bind(
                service,
                id,
                PropertySet.FirstClassProperties));
 }
Esempio n. 3
0
 /// <summary>
 /// Binds to an existing calendar folder and loads its first class 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>
 /// <returns>A CalendarFolder instance representing the calendar folder corresponding to the specified Id.</returns>
 public static new Task <CalendarFolder> Bind(ExchangeService service, FolderId id, CancellationToken token = default(CancellationToken))
 {
     return(CalendarFolder.Bind(
                service,
                id,
                PropertySet.FirstClassProperties,
                token));
 }
Esempio n. 4
0
 /// <summary>
 /// Binds to an existing calendar folder and loads its first class 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="name">The name of the calendar folder to bind to.</param>
 /// <returns>A CalendarFolder instance representing the calendar folder with the specified name.</returns>
 public static new Task <CalendarFolder> Bind(ExchangeService service, WellKnownFolderName name, CancellationToken token = default(CancellationToken))
 {
     return(CalendarFolder.Bind(
                service,
                new FolderId(name),
                PropertySet.FirstClassProperties,
                token));
 }
Esempio n. 5
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="name">The name 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 with the specified name.</returns>
 public static new Task <CalendarFolder> Bind(
     ExchangeService service,
     WellKnownFolderName name,
     PropertySet propertySet)
 {
     return(CalendarFolder.Bind(
                service,
                new FolderId(name),
                propertySet));
 }