ExchangeService.ConvertId(AlternateIdBase, IdFormat) Method

Definition

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

id
AlternateIdBase

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

Applies to