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

ContextModelExtensions.WithAccount(IAzureContext, IAzureAccount) Method

Definition

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

Parameters

context
IAzureContext
account
IAzureAccount

Returns

Applies to