Partager via


BaseRequestExtensions.WithUser<T>(T, ClaimsPrincipal) Method

Definition

Overrides authentication options for a given request.

public static T WithUser<T> (this T baseRequest, System.Security.Claims.ClaimsPrincipal user) where T : Microsoft.Graph.IBaseRequest;
static member WithUser : 'T * System.Security.Claims.ClaimsPrincipal -> 'T (requires 'T :> Microsoft.Graph.IBaseRequest)
<Extension()>
Public Function WithUser(Of T As IBaseRequest) (baseRequest As T, user As ClaimsPrincipal) As T

Type Parameters

T

Request

Parameters

baseRequest
T

Request.

user
ClaimsPrincipal

Delegate to override the authentication options

Returns

T

Base request

Applies to