Table of Contents

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 ExchangeService

The 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

SearchFolderParameters

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 ExchangeService

The service to use to bind to the search folder.

id FolderId

The 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 ExchangeService

The service to use to bind to the search folder.

id FolderId

The Id of the search folder to bind to.

propertySet PropertySet

The 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 ExchangeService

The service to use to bind to the search folder.

name WellKnownFolderName

The 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 ExchangeService

The service to use to bind to the search folder.

name WellKnownFolderName

The name of the search folder to bind to.

propertySet PropertySet

The set of properties to load.

Returns

SearchFolder

A SearchFolder instance representing the search folder with the specified name.