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

AzureStorageContext Constructors

Definition

Overloads

AzureStorageContext()

Proivides a private constructor for building empty instance which contains no account information.

AzureStorageContext(CloudStorageAccount, String, IAzureContext, DebugLogWriter)

Create a storage context usign cloud storage account

AzureStorageContext()

Proivides a private constructor for building empty instance which contains no account information.

protected AzureStorageContext ();
Protected Sub New ()

Applies to

AzureStorageContext(CloudStorageAccount, String, IAzureContext, DebugLogWriter)

Create a storage context usign cloud storage account

public AzureStorageContext (Microsoft.Azure.Storage.CloudStorageAccount account, string accountName = default, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext DefaultContext = default, Microsoft.WindowsAzure.Commands.Storage.Common.DebugLogWriter logWriter = default);
new Microsoft.WindowsAzure.Commands.Storage.Common.AzureStorageContext : Microsoft.Azure.Storage.CloudStorageAccount * string * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * Microsoft.WindowsAzure.Commands.Storage.Common.DebugLogWriter -> Microsoft.WindowsAzure.Commands.Storage.Common.AzureStorageContext
Public Sub New (account As CloudStorageAccount, Optional accountName As String = Nothing, Optional DefaultContext As IAzureContext = Nothing, Optional logWriter As DebugLogWriter = Nothing)

Parameters

account
CloudStorageAccount

cloud storage account

accountName
String

Storage account name

DefaultContext
IAzureContext
logWriter
DebugLogWriter

Applies to