/// <summary> /// Binds to an existing contacts folder and loads its first class properties. /// </summary> /// <param name="service">The service to use to bind to the contacts folder.</param> /// <param name="id">The Id of the contacts folder to bind to.</param> /// <returns>A ContactsFolder instance representing the contacts folder corresponding to the specified Id.</returns> public static new Task <ContactsFolder> Bind(ExchangeService service, FolderId id) { return(ContactsFolder.Bind( service, id, PropertySet.FirstClassProperties)); }
/// <summary> /// Binds to an existing contacts folder and loads its first class properties. /// </summary> /// <param name="service">The service to use to bind to the contacts folder.</param> /// <param name="name">The name of the contacts folder to bind to.</param> /// <returns>A ContactsFolder instance representing the contacts folder with the specified name.</returns> public static new Task <ContactsFolder> Bind(ExchangeService service, WellKnownFolderName name) { return(ContactsFolder.Bind( service, new FolderId(name), PropertySet.FirstClassProperties)); }
/// <summary> /// Binds to an existing contacts folder and loads its first class properties. /// </summary> /// <param name="service">The service to use to bind to the contacts folder.</param> /// <param name="id">The Id of the contacts folder to bind to.</param> /// <returns>A ContactsFolder instance representing the contacts folder corresponding to the specified Id.</returns> public static new Task <ContactsFolder> Bind(ExchangeService service, FolderId id, CancellationToken token = default(CancellationToken)) { return(ContactsFolder.Bind( service, id, PropertySet.FirstClassProperties, token)); }
/// <summary> /// Binds to an existing contacts folder and loads its first class properties. /// </summary> /// <param name="service">The service to use to bind to the contacts folder.</param> /// <param name="name">The name of the contacts folder to bind to.</param> /// <returns>A ContactsFolder instance representing the contacts folder with the specified name.</returns> public static new Task <ContactsFolder> Bind(ExchangeService service, WellKnownFolderName name, CancellationToken token = default(CancellationToken)) { return(ContactsFolder.Bind( service, new FolderId(name), PropertySet.FirstClassProperties, token)); }
/// <summary> /// Binds to an existing contacts folder and loads the specified set of properties. /// </summary> /// <param name="service">The service to use to bind to the contacts folder.</param> /// <param name="name">The name of the contacts folder to bind to.</param> /// <param name="propertySet">The set of properties to load.</param> /// <returns>A ContactsFolder instance representing the contacts folder with the specified name.</returns> public static new Task <ContactsFolder> Bind( ExchangeService service, WellKnownFolderName name, PropertySet propertySet) { return(ContactsFolder.Bind( service, new FolderId(name), propertySet)); }