Freigeben über


RelationshipResourceFormatCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string relationshipName, Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.RelationshipResourceFormatResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, relationshipName As String, data As RelationshipResourceFormatData, Optional cancellationToken As CancellationToken = Nothing) As 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: