HttpRequestMessageExtensions.GetMiddlewareOption<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.
Gets a IMiddlewareOption from HttpRequestMessage
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