Box.V2.Managers.BoxFilesManager.GetTrashedAsync C# (CSharp) Метод

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

Retrieves an item that has been moved to the trash.
public GetTrashedAsync ( string id, List fields = null ) : Task
id string Id of the file.
fields List Attribute(s) to include in the response.
Результат Task
        public async Task<BoxFile> GetTrashedAsync(string id, List<string> fields = null)
        {
            id.ThrowIfNullOrWhiteSpace("id");

            BoxRequest request = new BoxRequest(_config.FilesEndpointUri, string.Format(Constants.TrashPathString, id))
                .Param(ParamFields, fields);

            IBoxResponse<BoxFile> response = await ToResponseAsync<BoxFile>(request).ConfigureAwait(false);

            return response.ResponseObject;
        }