共用方式為


StorageAccountOperationsExtensions.GetKeysAsync 方法 (IStorageAccountOperations, String)

 

以非同步方式擷取儲存體帳戶的主要和次要存取金鑰。

命名空間:   Microsoft.WindowsAzure.Management.Storage
組件:  Microsoft.WindowsAzure.Management.Storage (在 Microsoft.WindowsAzure.Management.Storage.dll 中)

語法

public static Task<StorageAccountGetKeysResponse> GetKeysAsync(
    this IStorageAccountOperations operations,
    string accountName
)
public:
[ExtensionAttribute]
static Task<StorageAccountGetKeysResponse^>^ GetKeysAsync(
    IStorageAccountOperations^ operations,
    String^ accountName
)
static member GetKeysAsync : 
        operations:IStorageAccountOperations *
        accountName:string -> Task<StorageAccountGetKeysResponse>
<ExtensionAttribute>
Public Shared Function GetKeysAsync (
    operations As IStorageAccountOperations,
    accountName As String
) As Task(Of StorageAccountGetKeysResponse)

參數

  • serviceName
    擷取索引鍵的儲存體帳戶名稱。

傳回值

Type: System.Threading.Tasks.Task<StorageAccountGetKeysResponse>

StorageAccountGetKeysResponse 物件,其中包含主要和次要存取金鑰的儲存體帳戶。

備註

如需有關擷取存取金鑰的詳細資訊,請參閱下列資源:

請參閱

StorageAccountOperationsExtensions 類別
Microsoft.WindowsAzure.Management.Storage 命名空間

回到頁首