Partager via


ContextModelExtensions.WithSubscription Method

Definition

public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext WithSubscription (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription subscription);
static member WithSubscription : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext
<Extension()>
Public Function WithSubscription (context As IAzureContext, subscription As IAzureSubscription) As IAzureContext

Parameters

context
IAzureContext
subscription
IAzureSubscription

Returns

Applies to