BaseRequestExtensions.WithAuthenticationOptions<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.
Overrides authentication options for a given request.
public static T WithAuthenticationOptions<T> (this T baseRequest, Action<Microsoft.Identity.Abstractions.AuthorizationHeaderProviderOptions> overrideAuthenticationOptions) where T : Microsoft.Graph.IBaseRequest;
static member WithAuthenticationOptions : 'T * Action<Microsoft.Identity.Abstractions.AuthorizationHeaderProviderOptions> -> 'T (requires 'T :> Microsoft.Graph.IBaseRequest)
<Extension()>
Public Function WithAuthenticationOptions(Of T As IBaseRequest) (baseRequest As T, overrideAuthenticationOptions As Action(Of AuthorizationHeaderProviderOptions)) As T
Type Parameters
- T
Request
Parameters
- baseRequest
- T
Request.
- overrideAuthenticationOptions
- Action<AuthorizationHeaderProviderOptions>
Delegate to override the authentication options
Returns
T
Base request