Freigeben über


SqlServerCommunicationLinkCollection.CreateOrUpdateAsync Methode

Definition

Erstellt eine Serverkommunikationsverbindung.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}
  • Vorgangs-IdServerCommunicationLinks_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerCommunicationLinkResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string communicationLinkName, Azure.ResourceManager.Sql.SqlServerCommunicationLinkData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Sql.SqlServerCommunicationLinkData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerCommunicationLinkResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Sql.SqlServerCommunicationLinkData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerCommunicationLinkResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, communicationLinkName As String, data As SqlServerCommunicationLinkData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SqlServerCommunicationLinkResource))

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der zeitintensive Vorgang für den Dienst abgeschlossen ist; Started , wenn sie nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführungszeit finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

communicationLinkName
String

Der Name der Serverkommunikationsverbindung.

data
SqlServerCommunicationLinkData

Die erforderlichen Parameter zum Erstellen einer Serverkommunikationsverbindung.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

communicationLinkName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

communicationLinkName oder data ist NULL.

Gilt für: