共用方式為


ISqlServerDnsAliasOperations.AcquireAsync Method

Definition

Overloads

AcquireAsync(String, String, String, CancellationToken)

Acquires server DNS alias from another server asynchronously.

AcquireAsync(String, String, String, String, CancellationToken)

Acquires server DNS alias from another server asynchronously.

AcquireAsync(String, String, String, CancellationToken)

Acquires server DNS alias from another server asynchronously.

public System.Threading.Tasks.Task AcquireAsync (string dnsAliasName, string oldSqlServerId, string newSqlServerId, System.Threading.CancellationToken cancellationToken = default);
abstract member AcquireAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function AcquireAsync (dnsAliasName As String, oldSqlServerId As String, newSqlServerId As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

dnsAliasName
String

The name of the Server DNS alias.

oldSqlServerId
String

The id of the other SQL server that the DNS alias was pointing to.

newSqlServerId
String

The id of the server that the alias is pointing to.

cancellationToken
CancellationToken

Returns

Applies to

AcquireAsync(String, String, String, String, CancellationToken)

Acquires server DNS alias from another server asynchronously.

public System.Threading.Tasks.Task AcquireAsync (string resourceGroupName, string serverName, string dnsAliasName, string sqlServerId, System.Threading.CancellationToken cancellationToken = default);
abstract member AcquireAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function AcquireAsync (resourceGroupName As String, serverName As String, dnsAliasName As String, sqlServerId As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

resourceGroupName
String

The name of the resource group that contains the resource.

serverName
String

The name of the server that the alias is pointing to.

dnsAliasName
String

The name of the Server DNS alias.

sqlServerId
String

The id of the other SQL server that the DNS alias was pointing to.

cancellationToken
CancellationToken

Returns

Applies to