Class SearchFolder

    • Constructor Detail

      • SearchFolder

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

      • bind

        public static SearchFolder bind​(ExchangeService service,
                                        FolderId id,
                                        PropertySet propertySet)
                                 throws Exception
        Binds to an existing search folder and loads the specified set of property. Calling this method results in a call to EWS.
        Parameters:
        service - the service
        id - the id
        propertySet - the property set
        Returns:
        A SearchFolder instance representing the search folder corresponding to the specified Id.
        Throws:
        Exception - the exception
      • bind

        public static SearchFolder bind​(ExchangeService service,
                                        FolderId id)
                                 throws Exception
        Binds to an existing search folder and loads its first class property. Calling this method results in a call to EWS.
        Parameters:
        service - the service
        id - the id
        Returns:
        A SearchFolder instance representing the search folder corresponding to the specified Id.
        Throws:
        Exception - the exception
      • bind

        public static SearchFolder bind​(ExchangeService service,
                                        WellKnownFolderName name,
                                        PropertySet propertySet)
                                 throws Exception
        Binds to an existing search folder and loads the specified set of property. Calling this method results in a call to EWS.
        Parameters:
        service - the service
        name - the name
        propertySet - the property set
        Returns:
        A SearchFolder instance representing the search folder with the specified name.
        Throws:
        Exception - the exception
      • bind

        public static SearchFolder bind​(ExchangeService service,
                                        WellKnownFolderName name)
                                 throws Exception
        Binds to an existing search folder and loads the specified set of property. Calling this method results in a call to EWS.
        Parameters:
        service - the service
        name - the name
        Returns:
        A SearchFolder instance representing the search folder with the specified name.
        Throws:
        Exception - the exception
      • getSchema

        public ServiceObjectSchema getSchema()
        Internal method to return the schema associated with this type of object.
        Overrides:
        getSchema in class Folder
        Returns:
        The schema associated with this type of object.