Box.V2.Managers.BoxFoldersManager.GetTrashedFolderAsync C# (CSharp) Méthode

GetTrashedFolderAsync() public méthode

Retrieves a folder that has been moved to the trash.
public GetTrashedFolderAsync ( string id, List fields = null ) : Task
id string Id of the folder
fields List Attribute(s) to include in the response
Résultat Task
        public async Task<BoxFolder> GetTrashedFolderAsync(string id, List<string> fields = null)
        {
            id.ThrowIfNullOrWhiteSpace("id");

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


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

            return response.ResponseObject;
        }