コード例 #1
0
 /// <summary>
 /// Tests whether the specified Azure Storage account is linked to the given Data
 /// Lake Analytics account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group that contains the Data Lake
 /// Analytics account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Analytics account from which to test
 /// Azure storage account existence.
 /// </param>
 /// <param name='storageAccountName'>
 /// The name of the Azure Storage account for which to test for existence.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <bool> StorageAccountExistsAsync(this IAccountOperations operations, string resourceGroupName, string accountName, string storageAccountName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.StorageAccountExistsWithHttpMessagesAsync(resourceGroupName, accountName, storageAccountName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }