IEwsHttpWebRequestFactory.CreateExceptionResponse method

Initializes a response object for the exception thrown when an error occurs.

The CreateExceptionResponse(WebException) method is applicable for clients that target Exchange Online and versions of Exchange starting with Microsoft Exchange Server 2007.

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

Syntax

'Declaration
Function CreateExceptionResponse ( _
    exception As WebException _
) As IEwsHttpWebResponse
'Usage
Dim instance As IEwsHttpWebRequestFactory
Dim exception As WebException
Dim returnValue As IEwsHttpWebResponse

returnValue = instance.CreateExceptionResponse(exception)
IEwsHttpWebResponse CreateExceptionResponse(
    WebException exception
)

Parameters

Return value

Type: Microsoft.Exchange.WebServices.Data.IEwsHttpWebResponse
An object that implements the IEwsHttpWebResponse interface.

See also

Reference

IEwsHttpWebRequestFactory interface

IEwsHttpWebRequestFactory members

Microsoft.Exchange.WebServices.Data namespace