共用方式為


AzureAppConfigurationOptions.Connect Method

Definition

Overloads

Connect(IEnumerable<Uri>, TokenCredential)

Connect the provider to an Azure App Configuration store and its replicas using a list of endpoints and a token credential.

Connect(Uri, TokenCredential)

Connect the provider to Azure App Configuration using endpoint and token credentials.

Connect(IEnumerable<String>)

Connect the provider to an Azure App Configuration store and its replicas via a list of connection strings.

Connect(String)

Connect the provider to the Azure App Configuration service via a connection string.

Connect(IEnumerable<Uri>, TokenCredential)

Connect the provider to an Azure App Configuration store and its replicas using a list of endpoints and a token credential.

public Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationOptions Connect (System.Collections.Generic.IEnumerable<Uri> endpoints, Azure.Core.TokenCredential credential);
member this.Connect : seq<Uri> * Azure.Core.TokenCredential -> Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationOptions
Public Function Connect (endpoints As IEnumerable(Of Uri), credential As TokenCredential) As AzureAppConfigurationOptions

Parameters

endpoints
IEnumerable<Uri>

The list of endpoints of an Azure App Configuration store and its replicas to connect to.

credential
TokenCredential

Token credential to use to connect.

Returns

Applies to

Connect(Uri, TokenCredential)

Connect the provider to Azure App Configuration using endpoint and token credentials.

public Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationOptions Connect (Uri endpoint, Azure.Core.TokenCredential credential);
member this.Connect : Uri * Azure.Core.TokenCredential -> Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationOptions
Public Function Connect (endpoint As Uri, credential As TokenCredential) As AzureAppConfigurationOptions

Parameters

endpoint
Uri

The endpoint of the Azure App Configuration to connect to.

credential
TokenCredential

Token credentials to use to connect.

Returns

Applies to

Connect(IEnumerable<String>)

Connect the provider to an Azure App Configuration store and its replicas via a list of connection strings.

public Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationOptions Connect (System.Collections.Generic.IEnumerable<string> connectionStrings);
member this.Connect : seq<string> -> Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationOptions
Public Function Connect (connectionStrings As IEnumerable(Of String)) As AzureAppConfigurationOptions

Parameters

connectionStrings
IEnumerable<String>

Used to authenticate with Azure App Configuration.

Returns

Applies to

Connect(String)

Connect the provider to the Azure App Configuration service via a connection string.

public Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationOptions Connect (string connectionString);
member this.Connect : string -> Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationOptions
Public Function Connect (connectionString As String) As AzureAppConfigurationOptions

Parameters

connectionString
String

Used to authenticate with Azure App Configuration.

Returns

Applies to