Freigeben über


ShareSubscriptionsOperationsExtensions.CreateAsync Methode

Definition

Erstellen Sie shareSubscription in einem Konto.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataShare.Models.ShareSubscription> CreateAsync (this Microsoft.Azure.Management.DataShare.IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, Microsoft.Azure.Management.DataShare.Models.ShareSubscription shareSubscription, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.DataShare.IShareSubscriptionsOperations * string * string * string * Microsoft.Azure.Management.DataShare.Models.ShareSubscription * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataShare.Models.ShareSubscription>
<Extension()>
Public Function CreateAsync (operations As IShareSubscriptionsOperations, resourceGroupName As String, accountName As String, shareSubscriptionName As String, shareSubscription As ShareSubscription, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ShareSubscription)

Parameter

operations
IShareSubscriptionsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe.

accountName
String

Der Name des Freigabekontos.

shareSubscriptionName
String

Der Name der shareSubscription.

shareSubscription
ShareSubscription

Erstellen von Parametern für shareSubscription

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Erstellen einer shareSubscription in einem Konto

Gilt für: