ExchangeService.ConvertId(AlternateIdBase, IdFormat) 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.
Converts an ID from one format to another format in a single Exchange Web Services (EWS) call.
public:
Microsoft::Exchange::WebServices::Data::AlternateIdBase ^ ConvertId(Microsoft::Exchange::WebServices::Data::AlternateIdBase ^ id, Microsoft::Exchange::WebServices::Data::IdFormat destinationFormat);
public Microsoft.Exchange.WebServices.Data.AlternateIdBase ConvertId (Microsoft.Exchange.WebServices.Data.AlternateIdBase id, Microsoft.Exchange.WebServices.Data.IdFormat destinationFormat);
Public Function ConvertId (id As AlternateIdBase, destinationFormat As IdFormat) As AlternateIdBase
Parameters
The ID to be converted.
- destinationFormat
- IdFormat
The destination format for the ID.
Returns
The converted ID.
Remarks
The ConvertId operation does not work as expected when converting public folder identifiers from the EWS identifier to the store identifier in Exchange Online or on-premises versions of Exchange starting with Exchange Server 2013. You can manually update the identifier that is returned as a workaround