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

AzureContextExtensions.SetCurrentStorageAccount Method

Definition

Overloads

SetCurrentStorageAccount(IAzureContext, IStorageContext)
SetCurrentStorageAccount(IAzureContext, IStorageContextProvider)
SetCurrentStorageAccount(IAzureContext, String)

SetCurrentStorageAccount(IAzureContext, IStorageContext)

public static void SetCurrentStorageAccount (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext storageContext);
static member SetCurrentStorageAccount : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext -> unit
<Extension()>
Public Sub SetCurrentStorageAccount (context As IAzureContext, storageContext As IStorageContext)

Parameters

context
IAzureContext
storageContext
IStorageContext

Applies to

SetCurrentStorageAccount(IAzureContext, IStorageContextProvider)

public static void SetCurrentStorageAccount (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContextProvider account);
static member SetCurrentStorageAccount : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContextProvider -> unit
<Extension()>
Public Sub SetCurrentStorageAccount (context As IAzureContext, account As IStorageContextProvider)

Parameters

context
IAzureContext

Applies to

SetCurrentStorageAccount(IAzureContext, String)

public static void SetCurrentStorageAccount (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, string connectionString);
static member SetCurrentStorageAccount : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> unit
<Extension()>
Public Sub SetCurrentStorageAccount (context As IAzureContext, connectionString As String)

Parameters

context
IAzureContext
connectionString
String

Applies to