Udostępnij za pośrednictwem


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