BaseRequestExtensions.WithUser<T>(T, ClaimsPrincipal) 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 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