Class SearchFolder
- Namespace
- Microsoft.Exchange.WebServices.Data
- Assembly
- Microsoft.Exchange.WebServices.dll
Represents a search folder.
public class SearchFolder : Folder
- Inheritance
-
SearchFolder
- Inherited Members
Constructors
SearchFolder(ExchangeService)
Initializes an unsaved local instance of SearchFolder. To bind to an existing search folder, use SearchFolder.Bind() instead.
public SearchFolder(ExchangeService service)
Parameters
service
ExchangeServiceThe ExchangeService object to which the search folder will be bound.
Properties
SearchParameters
Gets the search parameters associated with the search folder.
public SearchFolderParameters SearchParameters { get; }
Property Value
Methods
Bind(ExchangeService, FolderId)
Binds to an existing search folder and loads its first class properties. Calling this method results in a call to EWS.
public static SearchFolder Bind(ExchangeService service, FolderId id)
Parameters
service
ExchangeServiceThe service to use to bind to the search folder.
id
FolderIdThe Id of the search folder to bind to.
Returns
- SearchFolder
A SearchFolder instance representing the search folder corresponding to the specified Id.
Bind(ExchangeService, FolderId, PropertySet)
Binds to an existing search folder and loads the specified set of properties. Calling this method results in a call to EWS.
public static SearchFolder Bind(ExchangeService service, FolderId id, PropertySet propertySet)
Parameters
service
ExchangeServiceThe service to use to bind to the search folder.
id
FolderIdThe Id of the search folder to bind to.
propertySet
PropertySetThe set of properties to load.
Returns
- SearchFolder
A SearchFolder instance representing the search folder corresponding to the specified Id.
Bind(ExchangeService, WellKnownFolderName)
Binds to an existing search folder and loads its first class properties. Calling this method results in a call to EWS.
public static SearchFolder Bind(ExchangeService service, WellKnownFolderName name)
Parameters
service
ExchangeServiceThe service to use to bind to the search folder.
name
WellKnownFolderNameThe name of the search folder to bind to.
Returns
- SearchFolder
A SearchFolder instance representing the search folder with the specified name.
Bind(ExchangeService, WellKnownFolderName, PropertySet)
Binds to an existing search folder and loads the specified set of properties. Calling this method results in a call to EWS.
public static SearchFolder Bind(ExchangeService service, WellKnownFolderName name, PropertySet propertySet)
Parameters
service
ExchangeServiceThe service to use to bind to the search folder.
name
WellKnownFolderNameThe name of the search folder to bind to.
propertySet
PropertySetThe set of properties to load.
Returns
- SearchFolder
A SearchFolder instance representing the search folder with the specified name.