你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ManagementGroupSubscriptionsOperationsExtensions.CreateAsync 方法

定义

将现有订阅与管理组关联。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ManagementGroups.Models.SubscriptionUnderManagementGroup> CreateAsync (this Microsoft.Azure.Management.ManagementGroups.IManagementGroupSubscriptionsOperations operations, string groupId, string subscriptionId, string cacheControl = "no-cache", System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.ManagementGroups.IManagementGroupSubscriptionsOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ManagementGroups.Models.SubscriptionUnderManagementGroup>
<Extension()>
Public Function CreateAsync (operations As IManagementGroupSubscriptionsOperations, groupId As String, subscriptionId As String, Optional cacheControl As String = "no-cache", Optional cancellationToken As CancellationToken = Nothing) As Task(Of SubscriptionUnderManagementGroup)

参数

operations
IManagementGroupSubscriptionsOperations

此扩展方法的操作组。

groupId
String

管理组 ID。

subscriptionId
String

订阅 ID。

cacheControl
String

指示请求是否应利用任何缓存。 使用“no-cache”值填充标头以绕过现有缓存。

cancellationToken
CancellationToken

取消标记。

返回

适用于