Box.V2.Managers.BoxCommentsManager.DeleteAsync C# (CSharp) Метод

DeleteAsync() публичный Метод

Permanently deletes a comment.
public DeleteAsync ( string id ) : Task
id string Id of the comment.
Результат Task
        public async Task<bool> DeleteAsync(string id)
        {
            id.ThrowIfNullOrWhiteSpace("id");

            BoxRequest request = new BoxRequest(_config.CommentsEndpointUri, id)
                .Method(RequestMethod.Delete);

            IBoxResponse<BoxComment> response = await ToResponseAsync<BoxComment>(request).ConfigureAwait(false);
            return response.Status == ResponseStatus.Success;
        }
    }