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

GetInformationAsync() public méthode

Retrieves the full metadata about a folder, including information about when it was last updated as well as the files and folders contained in it. To retrieve information about the root folder of a Box account use the id “0″.
public GetInformationAsync ( string id, List fields = null ) : Task
id string The folder id
fields List Attribute(s) to include in the response
Résultat Task
        public async Task<BoxFolder> GetInformationAsync(string id, List<string> fields = null)
        {
            id.ThrowIfNullOrWhiteSpace("id");

            BoxRequest request = new BoxRequest(_config.FoldersEndpointUri, id)
                .Method(RequestMethod.Get)
                .Param(ParamFields, fields);

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

            return response.ResponseObject;
        }