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

RMProfileClient.TryGetSubscriptionById Method

Definition

Overloads

TryGetSubscriptionById(String, String)
TryGetSubscriptionById(String, String, IAzureSubscription)

TryGetSubscriptionById(String, String)

public System.Collections.Generic.IEnumerable<Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription> TryGetSubscriptionById (string tenantId, string subscriptionId);
member this.TryGetSubscriptionById : string * string -> seq<Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription>
Public Function TryGetSubscriptionById (tenantId As String, subscriptionId As String) As IEnumerable(Of IAzureSubscription)

Parameters

tenantId
String
subscriptionId
String

Returns

Applies to

TryGetSubscriptionById(String, String, IAzureSubscription)

public bool TryGetSubscriptionById (string tenantId, string subscriptionId, out Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription subscription);
member this.TryGetSubscriptionById : string * string * IAzureSubscription -> bool
Public Function TryGetSubscriptionById (tenantId As String, subscriptionId As String, ByRef subscription As IAzureSubscription) As Boolean

Parameters

tenantId
String
subscriptionId
String
subscription
IAzureSubscription

Returns

Applies to