다음을 통해 공유


BaseRequestExtensions.WithAuthenticationOptions<T> Method

Definition

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

Applies to