共用方式為


BaseRequestExtensions.WithResponseHandler<T> Method

Definition

Replaces the default response handler with a custom response handler for this request.

public static T WithResponseHandler<T> (this T baseRequest, Microsoft.Graph.IResponseHandler responseHandler) where T : Microsoft.Graph.BaseRequest;
static member WithResponseHandler : 'T * Microsoft.Graph.IResponseHandler -> 'T (requires 'T :> Microsoft.Graph.BaseRequest)
<Extension()>
Public Function WithResponseHandler(Of T As BaseRequest) (baseRequest As T, responseHandler As IResponseHandler) As T

Type Parameters

T

Parameters

baseRequest
T

The BaseRequest for the request.

responseHandler
IResponseHandler

The IResponseHandler for the request.

Returns

T

Exceptions

If responseHandler is null.

Applies to