BatchTokenCredentials Constructors
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.
Overloads
BatchTokenCredentials(String, Func<Task<String>>) |
Initializes a new instance of the BatchTokenCredentials class with the specified Batch service endpoint and authentication token provider function. |
BatchTokenCredentials(String, String) |
Initializes a new instance of the BatchTokenCredentials class with the specified Batch service endpoint and authentication token. |
BatchTokenCredentials(String, Func<Task<String>>)
- Source:
- BatchTokenCredentials.cs
Initializes a new instance of the BatchTokenCredentials class with the specified Batch service endpoint and authentication token provider function.
public BatchTokenCredentials (string baseUrl, Func<System.Threading.Tasks.Task<string>> tokenProvider);
new Microsoft.Azure.Batch.Auth.BatchTokenCredentials : string * Func<System.Threading.Tasks.Task<string>> -> Microsoft.Azure.Batch.Auth.BatchTokenCredentials
Public Sub New (baseUrl As String, tokenProvider As Func(Of Task(Of String)))
Parameters
- baseUrl
- String
The Batch service endpoint.
Applies to
BatchTokenCredentials(String, String)
- Source:
- BatchTokenCredentials.cs
Initializes a new instance of the BatchTokenCredentials class with the specified Batch service endpoint and authentication token.
public BatchTokenCredentials (string baseUrl, string token);
new Microsoft.Azure.Batch.Auth.BatchTokenCredentials : string * string -> Microsoft.Azure.Batch.Auth.BatchTokenCredentials
Public Sub New (baseUrl As String, token As String)
Parameters
- baseUrl
- String
The Batch service endpoint.
- token
- String
An authentication token provided by Azure Active Directory.
Applies to
Azure SDK for .NET