コード例 #1
0
 /// <summary>
 /// Delete user asynchronously.
 /// </summary>
 /// <example>
 /// This example shows how to use the <see cref="AccountManagementApi.DeleteUserAsync(string)"/> method.
 /// <code>
 /// try
 /// {
 ///     accountApi.DeleteUser("015c3c46514802420a010b1000000000");
 /// }
 /// catch (CloudApiException)
 /// {
 ///     throw;
 /// }
 /// </code>
 /// </example>
 /// <param name="userId">Id</param>
 /// <returns><see cref="Task"/></returns>
 /// <exception cref="CloudApiException">CloudApiException</exception>
 public async Task DeleteUserAsync(string userId)
 {
     try
     {
         await AdminApi.DeleteUserAsync(userId);
     }
     catch (iam.Client.ApiException e)
     {
         HandleNotFound <string, iam.Client.ApiException>(e);
     }
 }