Box.V2.Managers.BoxRetentionPoliciesManager.GetFileVersionRetentionAsync C# (CSharp) Method

GetFileVersionRetentionAsync() public method

Used to retrieve information about a file version retention.
public GetFileVersionRetentionAsync ( string fileVersionRetentionId, List fields = null ) : Task
fileVersionRetentionId string ID of the file version retention policy.
fields List Attribute(s) to include in the response.
return Task
        public async Task<BoxFileVersionRetention> GetFileVersionRetentionAsync(string fileVersionRetentionId, List<string> fields = null)
        {
            BoxRequest request = new BoxRequest(_config.FileVersionRetentionsUri, fileVersionRetentionId)
                .Param(ParamFields, fields);

            var response = await ToResponseAsync<BoxFileVersionRetention>(request).ConfigureAwait(false);

            return response.ResponseObject;
        }
    }