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

AzureContextExtensions.GetSubscriptionById Method

Definition

Overloads

GetSubscriptionById(IAzureContextContainer, Guid)
GetSubscriptionById(IAzureContextContainer, String)
GetSubscriptionById(IAzureContextContainer, Guid)
GetSubscriptionById(IAzureContextContainer, String)

GetSubscriptionById(IAzureContextContainer, Guid)

public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer container, Guid id);
static member GetSubscriptionById : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * Guid -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription
<Extension()>
Public Function GetSubscriptionById (container As IAzureContextContainer, id As Guid) As IAzureSubscription

Parameters

id
Guid

Returns

Applies to

GetSubscriptionById(IAzureContextContainer, String)

public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer container, string id);
static member GetSubscriptionById : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * string -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription
<Extension()>
Public Function GetSubscriptionById (container As IAzureContextContainer, id As String) As IAzureSubscription

Parameters

id
String

Returns

Applies to

GetSubscriptionById(IAzureContextContainer, Guid)

public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer container, Guid id);
static member GetSubscriptionById : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * Guid -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription
<Extension()>
Public Function GetSubscriptionById (container As IAzureContextContainer, id As Guid) As IAzureSubscription

Parameters

id
Guid

Returns

Applies to

GetSubscriptionById(IAzureContextContainer, String)

public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer container, string id);
static member GetSubscriptionById : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * string -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription
<Extension()>
Public Function GetSubscriptionById (container As IAzureContextContainer, id As String) As IAzureSubscription

Parameters

id
String

Returns

Applies to