Class ContactsFolder

    • Constructor Detail

      • ContactsFolder

        public ContactsFolder​(ExchangeService service)
                       throws Exception
        Initializes an unsaved local instance of the class.To bind to an existing contacts folder, use ContactsFolder.Bind() instead.
        Parameters:
        service - the service
        Throws:
        Exception - the exception
    • Method Detail

      • bind

        public static ContactsFolder bind​(ExchangeService service,
                                          FolderId id,
                                          PropertySet propertySet)
                                   throws Exception
        Binds to an existing contacts folder and loads the specified set of property.
        Parameters:
        service - the service
        id - the id
        propertySet - the property set
        Returns:
        A ContactsFolder instance representing the contacts folder corresponding to the specified Id.
        Throws:
        Exception - the exception
      • bind

        public static ContactsFolder bind​(ExchangeService service,
                                          FolderId id)
                                   throws Exception
        Binds to an existing contacts folder and loads its first class property.
        Parameters:
        service - the service
        id - the id
        Returns:
        A ContactsFolder instance representing the contacts folder corresponding to the specified Id.
        Throws:
        Exception - the exception
      • bind

        public static ContactsFolder bind​(ExchangeService service,
                                          WellKnownFolderName name,
                                          PropertySet propertySet)
                                   throws Exception
        Binds to an existing contacts folder and loads the specified set of property.
        Parameters:
        service - the service
        name - the name
        propertySet - the property set
        Returns:
        A ContactsFolder instance representing the contacts folder corresponding to the specified name.
        Throws:
        Exception - the exception
      • bind

        public static ContactsFolder bind​(ExchangeService service,
                                          WellKnownFolderName name)
                                   throws Exception
        Binds to an existing contacts folder and loads its first class property.
        Parameters:
        service - the service
        name - the name
        Returns:
        A ContactsFolder instance representing the contacts folder corresponding to the specified name.
        Throws:
        Exception - the exception