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

SubscriptionExtensions.GetAcceptOwnershipStatus 方法

定义

接受订阅所有权状态。

  • 请求路径/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnershipStatus
  • 操作IdSubscription_AcceptOwnershipStatus
public static Azure.Response<Azure.ResourceManager.Subscription.Models.AcceptOwnershipStatus> GetAcceptOwnershipStatus (this Azure.ResourceManager.Resources.TenantResource tenantResource, string subscriptionId, System.Threading.CancellationToken cancellationToken = default);
static member GetAcceptOwnershipStatus : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Subscription.Models.AcceptOwnershipStatus>
<Extension()>
Public Function GetAcceptOwnershipStatus (tenantResource As TenantResource, subscriptionId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AcceptOwnershipStatus)

参数

tenantResource
TenantResource

方法 TenantResource 将对其执行的实例。

subscriptionId
String

订阅 ID。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

subscriptionId 是一个空字符串,预期为非空。

subscriptionId 为 null。

适用于