Folder.Bind Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Bind(ExchangeService, FolderId) |
Binds to an existing folder, whatever its actual type is, and loads its first class properties. |
Bind(ExchangeService, WellKnownFolderName) |
Binds to an existing folder, whatever its actual type is, and loads its first class properties. |
Bind(ExchangeService, FolderId, PropertySet) |
Binds to an existing folder, whatever its actual type is, and loads the specified set of properties. |
Bind(ExchangeService, WellKnownFolderName, PropertySet) |
Binds to an existing folder, whatever its actual type is, and loads the specified set of properties. |
Bind(ExchangeService, FolderId)
Binds to an existing folder, whatever its actual type is, and loads its first class properties.
public:
static Microsoft::Exchange::WebServices::Data::Folder ^ Bind(Microsoft::Exchange::WebServices::Data::ExchangeService ^ service, Microsoft::Exchange::WebServices::Data::FolderId ^ id);
public static Microsoft.Exchange.WebServices.Data.Folder Bind (Microsoft.Exchange.WebServices.Data.ExchangeService service, Microsoft.Exchange.WebServices.Data.FolderId id);
Public Shared Function Bind (service As ExchangeService, id As FolderId) As Folder
Parameters
- service
- ExchangeService
The service to use to bind to the folder.
- id
- FolderId
The identifier of the folder to bind to.
Returns
The folder that corresponds to the specified ID.
Remarks
Calling this method results in a call to Exchange Web Services (EWS).
Applies to
Bind(ExchangeService, WellKnownFolderName)
Binds to an existing folder, whatever its actual type is, and loads its first class properties.
public:
static Microsoft::Exchange::WebServices::Data::Folder ^ Bind(Microsoft::Exchange::WebServices::Data::ExchangeService ^ service, Microsoft::Exchange::WebServices::Data::WellKnownFolderName name);
public static Microsoft.Exchange.WebServices.Data.Folder Bind (Microsoft.Exchange.WebServices.Data.ExchangeService service, Microsoft.Exchange.WebServices.Data.WellKnownFolderName name);
Public Shared Function Bind (service As ExchangeService, name As WellKnownFolderName) As Folder
Parameters
- service
- ExchangeService
The service to use to bind to the folder.
- name
- WellKnownFolderName
The name of the folder to bind to.
Returns
The folder with the specified name
.
Remarks
Calling this method results in a call to Exchange Web Services (EWS).
Applies to
Bind(ExchangeService, FolderId, PropertySet)
Binds to an existing folder, whatever its actual type is, and loads the specified set of properties.
public:
static Microsoft::Exchange::WebServices::Data::Folder ^ Bind(Microsoft::Exchange::WebServices::Data::ExchangeService ^ service, Microsoft::Exchange::WebServices::Data::FolderId ^ id, Microsoft::Exchange::WebServices::Data::PropertySet ^ propertySet);
public static Microsoft.Exchange.WebServices.Data.Folder Bind (Microsoft.Exchange.WebServices.Data.ExchangeService service, Microsoft.Exchange.WebServices.Data.FolderId id, Microsoft.Exchange.WebServices.Data.PropertySet propertySet);
Parameters
- service
- ExchangeService
The service to use to bind to the folder.
- id
- FolderId
The identifier of the folder to bind to.
- propertySet
- PropertySet
The set of properties to load.
Returns
The folder that corresponds to the specified ID.
Remarks
Calling this method results in a call to Exchange Web Services (EWS).
Applies to
Bind(ExchangeService, WellKnownFolderName, PropertySet)
Binds to an existing folder, whatever its actual type is, and loads the specified set of properties.
public:
static Microsoft::Exchange::WebServices::Data::Folder ^ Bind(Microsoft::Exchange::WebServices::Data::ExchangeService ^ service, Microsoft::Exchange::WebServices::Data::WellKnownFolderName name, Microsoft::Exchange::WebServices::Data::PropertySet ^ propertySet);
public static Microsoft.Exchange.WebServices.Data.Folder Bind (Microsoft.Exchange.WebServices.Data.ExchangeService service, Microsoft.Exchange.WebServices.Data.WellKnownFolderName name, Microsoft.Exchange.WebServices.Data.PropertySet propertySet);
Parameters
- service
- ExchangeService
The service to use to bind to the folder.
- name
- WellKnownFolderName
The name of the folder to bind to.
- propertySet
- PropertySet
The set of properties to load.
Returns
The folder with the specified name
.
Remarks
Calling this method results in a call to Exchange Web Services (EWS).