Share via


HttpRequestMessageExtensions.GetMiddlewareOption<T> Method

Definition

public static T GetMiddlewareOption<T> (this System.Net.Http.HttpRequestMessage httpRequestMessage) where T : Microsoft.Graph.IMiddlewareOption;
static member GetMiddlewareOption : System.Net.Http.HttpRequestMessage -> 'T (requires 'T :> Microsoft.Graph.IMiddlewareOption)
<Extension()>
Public Function GetMiddlewareOption(Of T As IMiddlewareOption) (httpRequestMessage As HttpRequestMessage) As T

Type Parameters

T

Parameters

httpRequestMessage
HttpRequestMessage

The HttpRequestMessage representation of the request.

Returns

T

A middleware option

Applies to