共用方式為


BearerTokenAuthenticationPolicy Constructors

Definition

Overloads

BearerTokenAuthenticationPolicy(TokenCredential, IEnumerable<String>)

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scopes to authenticate for.

BearerTokenAuthenticationPolicy(TokenCredential, String)

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scope to authenticate for.

BearerTokenAuthenticationPolicy(TokenCredential, IEnumerable<String>)

Source:
BearerTokenAuthenticationPolicy.cs

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scopes to authenticate for.

public BearerTokenAuthenticationPolicy (Azure.Core.TokenCredential credential, System.Collections.Generic.IEnumerable<string> scopes);
new Azure.Core.Pipeline.BearerTokenAuthenticationPolicy : Azure.Core.TokenCredential * seq<string> -> Azure.Core.Pipeline.BearerTokenAuthenticationPolicy
Public Sub New (credential As TokenCredential, scopes As IEnumerable(Of String))

Parameters

credential
TokenCredential

The token credential to use for authentication.

scopes
IEnumerable<String>

Scopes to be included in acquired tokens.

Exceptions

When credential or scopes is null.

Applies to

BearerTokenAuthenticationPolicy(TokenCredential, String)

Source:
BearerTokenAuthenticationPolicy.cs

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scope to authenticate for.

public BearerTokenAuthenticationPolicy (Azure.Core.TokenCredential credential, string scope);
new Azure.Core.Pipeline.BearerTokenAuthenticationPolicy : Azure.Core.TokenCredential * string -> Azure.Core.Pipeline.BearerTokenAuthenticationPolicy
Public Sub New (credential As TokenCredential, scope As String)

Parameters

credential
TokenCredential

The token credential to use for authentication.

scope
String

The scope to be included in acquired tokens.

Applies to