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

AzureContextAdapterExtensions.GetCloudStorageAccount Method

Definition

Overloads

GetCloudStorageAccount(IStorageContext)

Get a CloudStorageAccount client for the storage account represented by this context

GetCloudStorageAccount(IStorageService)

Get a CloudStorageAccount client for the storage account represented by this service

GetCloudStorageAccount(IAzureContext, IStorageServiceProvider)

Get a CloudStorageAccount client for the current storage service using the given storage service provider

GetCloudStorageAccount(IStorageServiceProvider, String, String)

Get a CloudStorageAccount client for the given storage service using the given storage service provider

GetCloudStorageAccount(IStorageContext)

Get a CloudStorageAccount client for the storage account represented by this context

public static Microsoft.WindowsAzure.Storage.CloudStorageAccount GetCloudStorageAccount (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext context);
static member GetCloudStorageAccount : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext -> Microsoft.WindowsAzure.Storage.CloudStorageAccount
<Extension()>
Public Function GetCloudStorageAccount (context As IStorageContext) As CloudStorageAccount

Parameters

context
IStorageContext

The storage context for the storage account

Returns

A CloudStorageAccount client for storage data plane tasks

Applies to

GetCloudStorageAccount(IStorageService)

Get a CloudStorageAccount client for the storage account represented by this service

public static Microsoft.WindowsAzure.Storage.CloudStorageAccount GetCloudStorageAccount (this Microsoft.WindowsAzure.Commands.Common.Storage.IStorageService service);
static member GetCloudStorageAccount : Microsoft.WindowsAzure.Commands.Common.Storage.IStorageService -> Microsoft.WindowsAzure.Storage.CloudStorageAccount
<Extension()>
Public Function GetCloudStorageAccount (service As IStorageService) As CloudStorageAccount

Parameters

service
IStorageService

The storage service

Returns

A CloudStorageAccount client for storage data plane tasks

Applies to

GetCloudStorageAccount(IAzureContext, IStorageServiceProvider)

Get a CloudStorageAccount client for the current storage service using the given storage service provider

public static Microsoft.WindowsAzure.Storage.CloudStorageAccount GetCloudStorageAccount (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, Microsoft.WindowsAzure.Commands.Common.Storage.IStorageServiceProvider provider);
static member GetCloudStorageAccount : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * Microsoft.WindowsAzure.Commands.Common.Storage.IStorageServiceProvider -> Microsoft.WindowsAzure.Storage.CloudStorageAccount
<Extension()>
Public Function GetCloudStorageAccount (context As IAzureContext, provider As IStorageServiceProvider) As CloudStorageAccount

Parameters

context
IAzureContext

The current Azure context.

provider
IStorageServiceProvider

The storage service provider to retrieve storage service details

Returns

A CloudStorageAccount client for storage data plane tasks

Applies to

GetCloudStorageAccount(IStorageServiceProvider, String, String)

Get a CloudStorageAccount client for the given storage service using the given storage service provider

public static Microsoft.WindowsAzure.Storage.CloudStorageAccount GetCloudStorageAccount (this Microsoft.WindowsAzure.Commands.Common.Storage.IStorageServiceProvider provider, string accountName, string resourceGroupName = default);
static member GetCloudStorageAccount : Microsoft.WindowsAzure.Commands.Common.Storage.IStorageServiceProvider * string * string -> Microsoft.WindowsAzure.Storage.CloudStorageAccount
<Extension()>
Public Function GetCloudStorageAccount (provider As IStorageServiceProvider, accountName As String, Optional resourceGroupName As String = Nothing) As CloudStorageAccount

Parameters

provider
IStorageServiceProvider

The storage service provider to retrieve storage service details

accountName
String

The storage accoutn name

resourceGroupName
String

Returns

A CloudStorageAccount client for storage data plane tasks

Applies to