ExchangeService.ConvertId method

Converts an ID from one format to another format in a single Exchange Web Services (EWS) call.

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

public AlternateIdBase ConvertId(
	AlternateIdBase id,
	IdFormat destinationFormat


Type: Microsoft.Exchange.WebServices.Data.AlternateIdBase

The ID to be converted.

Type: Microsoft.Exchange.WebServices.Data.IdFormat

The destination format for the ID.

Return value

Type: Microsoft.Exchange.WebServices.Data.AlternateIdBase
The converted ID.

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.