Aracılığıyla paylaş


IStorageAccountOperations.GetAsync Method

Asynchronously retrieves information about a storage account.

Namespace: Microsoft.WindowsAzure.Management.Storage
Assembly: Microsoft.WindowsAzure.Management.Storage (in Microsoft.WindowsAzure.Management.Storage.dll)

Usage

'Usage
Dim instance As IStorageAccountOperations
Dim accountName As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of StorageAccountGetResponse)

returnValue = instance.GetAsync(accountName, cancellationToken)

Syntax

'Declaration
Function GetAsync ( _
    accountName As String, _
    cancellationToken As CancellationToken _
) As Task(Of StorageAccountGetResponse)
Task<StorageAccountGetResponse> GetAsync (
    string accountName,
    CancellationToken cancellationToken
)
Task<StorageAccountGetResponse^>^ GetAsync (
    String^ accountName, 
    CancellationToken cancellationToken
)
Task<StorageAccountGetResponse> GetAsync (
    String accountName, 
    CancellationToken cancellationToken
)
function GetAsync (
    accountName : String, 
    cancellationToken : CancellationToken
) : Task<StorageAccountGetResponse>

Parameters

  • serviceName
    Name of the storage account for which information should be retrieved.
  • cancellationToken
    The cancellation token.

Return Value

The StorageServiceGetResponse that contains the information about the storage account.

Remarks

For more information about retrieving information about a storage account, see the following resources:

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

IStorageAccountOperations Interface
IStorageAccountOperations Members
Microsoft.WindowsAzure.Management.Storage Namespace