Compartilhar via


Método StorageAccountOperationsExtensions.GetKeys

Retrieves the primary and secondary access keys for a storage account.

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

Uso

'Uso
Dim operations As IStorageAccountOperations
Dim accountName As String
Dim returnValue As StorageAccountGetKeysResponse

returnValue = StorageAccountOperationsExtensions.GetKeys(operations, accountName)

Sintaxe

'Declaração
<ExtensionAttribute> _
Public Shared Function GetKeys ( _
    operations As IStorageAccountOperations, _
    accountName As String _
) As StorageAccountGetKeysResponse
[ExtensionAttribute] 
public static StorageAccountGetKeysResponse GetKeys (
    IStorageAccountOperations operations,
    string accountName
)
[ExtensionAttribute] 
public:
static StorageAccountGetKeysResponse^ GetKeys (
    IStorageAccountOperations^ operations, 
    String^ accountName
)
/** @attribute ExtensionAttribute() */ 
public static StorageAccountGetKeysResponse GetKeys (
    IStorageAccountOperations operations, 
    String accountName
)
ExtensionAttribute 
public static function GetKeys (
    operations : IStorageAccountOperations, 
    accountName : String
) : StorageAccountGetKeysResponse

Parâmetros

  • serviceName
    The name of the storage account for which keys should be retrieved.

Valor de retorno

The StorageAccountGetKeysResponse object that contains the primary and secondary access keys for the storage account.

Comentários

For more information about retrieving access keys, see the following resources:

Segurança de thread

Qualquer membro estático público (compartilhado no Visual Basic) desse tipo é thread-safe. Não há garantia de que qualquer membro de instância seja seguro para threads.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows 7 e Windows Server 2008

Plataformas de destino

Consulte também

Referência

Classe StorageAccountOperationsExtensions
Membros StorageAccountOperationsExtensions
Namespace Microsoft.WindowsAzure.Management.Storage