Freigeben über


RelationshipResourceFormatCollection.CreateOrUpdateAsync Methode

Definition

Erstellt eine Beziehung oder aktualisiert eine vorhandene Beziehung innerhalb eines Hubs.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships/{relationshipName}
  • Vorgangs-IdRelationships_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string relationshipName, Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, relationshipName As String, data As RelationshipResourceFormatData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of RelationshipResourceFormatResource))

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.

relationshipName
String

Der Name der Beziehung.

data
RelationshipResourceFormatData

Für den CreateOrUpdate-Beziehungsvorgang bereitgestellte Parameter.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

relationshipName oder data ist NULL.

Gilt für: