BaseRequestExtensions.WithResponseHandler<T> 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.
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.