BaseRequestExtensions.WithScopes<T>(T, String[]) 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.
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.
public static T WithScopes<T> (this T baseRequest, params string[] scopes) where T : Microsoft.Graph.IBaseRequest;
static member WithScopes : 'T * string[] -> 'T (requires 'T :> Microsoft.Graph.IBaseRequest)
<Extension()>
Public Function WithScopes(Of T As IBaseRequest) (baseRequest As T, ParamArray scopes As String()) As T
Type Parameters
- T
Parameters
- baseRequest
- T
The IBaseRequest.
- scopes
- String[]
Microsoft Graph scopes used to authenticate this request.