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

AzureContextAdapterExtensions.GetStorageContext(IStorageService) Method

Definition

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

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

Parameters

service
IStorageService

The storage service

Returns

A CloudStorageAccount client for storage data plane tasks

Applies to