Compartir a través de


BaseRequestExtensions Class

Definition

Extension methods for Graph requests

public static class BaseRequestExtensions
type BaseRequestExtensions = class
Public Module BaseRequestExtensions
Inheritance
BaseRequestExtensions

Methods

WithAppOnly<T>(T, Boolean, String)

Applied to a request, expresses to use app only permissions for Graph.

WithAuthenticationOptions<T>(T, Action<AuthorizationHeaderProviderOptions>)

Overrides authentication options for a given request.

WithAuthenticationScheme<T>(T, String)

Sets the authentication scheme that will be used by IAuthenticationProvider to authenticate this request. This only works with the default authentication handler and default set of Microsoft Graph authentication providers. If you use a custom authentication handler or authentication provider, you have to handle its retrieval in your implementation.

WithScopes<T>(T, String[])

Sets Microsoft Graph's scopes that will be used by IAuthenticationProvider to authenticate this request and can be used to perform incremental scope consent. This only works with the default authentication handler and default set of Microsoft Graph authentication providers. If you use a custom authentication handler or authentication provider, you have to handle its retrieval in your implementation.

WithUser<T>(T, ClaimsPrincipal)

Overrides authentication options for a given request.

Applies to