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

AzureContextExtensions.GetSubscriptionByName Method

Definition

Overloads

GetSubscriptionByName(IAzureContextContainer, String)
GetSubscriptionByName(IAzureContextContainer, String)

GetSubscriptionByName(IAzureContextContainer, String)

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

Parameters

subscriptionName
String

Returns

Applies to

GetSubscriptionByName(IAzureContextContainer, String)

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

Parameters

subscriptionName
String

Returns

Applies to