/// <summary>
 /// Binds to an existing search 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 search folder.</param>
 /// <param name="name">The name of the search folder to bind to.</param>
 /// <returns>A SearchFolder instance representing the search folder with the specified name.</returns>
 public static new SearchFolder Bind(ExchangeService service, WellKnownFolderName name)
 {
     return(SearchFolder.Bind(
                service,
                new FolderId(name),
                PropertySet.FirstClassProperties));
 }
 /// <summary>
 /// Binds to an existing search 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 search folder.</param>
 /// <param name="id">The Id of the search folder to bind to.</param>
 /// <returns>A SearchFolder instance representing the search folder corresponding to the specified Id.</returns>
 public static new SearchFolder Bind(ExchangeService service, FolderId id)
 {
     return(SearchFolder.Bind(
                service,
                id,
                PropertySet.FirstClassProperties));
 }
示例#3
0
 /// <summary>
 /// Binds to an existing search 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 search folder.</param>
 /// <param name="id">The Id of the search folder to bind to.</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, CancellationToken token = default(CancellationToken))
 {
     return(SearchFolder.Bind(
                service,
                id,
                PropertySet.FirstClassProperties,
                token));
 }
示例#4
0
 /// <summary>
 /// Binds to an existing search 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 search folder.</param>
 /// <param name="name">The name of the search folder to bind to.</param>
 /// <returns>A SearchFolder instance representing the search folder with the specified name.</returns>
 public static new Task <SearchFolder> Bind(ExchangeService service, WellKnownFolderName name, CancellationToken token = default(CancellationToken))
 {
     return(SearchFolder.Bind(
                service,
                new FolderId(name),
                PropertySet.FirstClassProperties,
                token));
 }
 /// <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="name">The name 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 with the specified name.</returns>
 public static new SearchFolder Bind(
     ExchangeService service,
     WellKnownFolderName name,
     PropertySet propertySet)
 {
     return(SearchFolder.Bind(
                service,
                new FolderId(name),
                propertySet));
 }