Box.V2.Managers.BoxLegalHoldPoliciesManager.GetFileVersionLegalHoldsAsync C# (CSharp) Метод

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

Get list of non-deleted Holds for a single Policy.
public GetFileVersionLegalHoldsAsync ( string policyId, List fields = null, int limit = 100, string marker = null, bool autoPaginate = false ) : Task>
policyId string ID of Legal Hold Policy to get File Version Legal Holds for.
fields List Attribute(s) to include in the response.
limit int Limit result size to this number. Defaults to 100, maximum is 1,000.
marker string Take from "next_marker" column of a prior call to get the next page.
autoPaginate bool Whether or not to auto-paginate to fetch all items; defaults to false.
Результат Task>
        public async Task<BoxCollectionMarkerBased<BoxFileVersionLegalHold>> GetFileVersionLegalHoldsAsync(string policyId, List<string> fields = null, int limit = 100, string marker = null, bool autoPaginate = false)
        {
            BoxRequest request = new BoxRequest(_config.FileVersionLegalHoldsEndpointUri)
                .Param(ParamPolicyId, policyId)
                .Param(ParamFields, fields)
                .Param("limit", limit.ToString())
                .Param("marker", marker);

            if (autoPaginate)
            {
                return await AutoPaginateMarker<BoxFileVersionLegalHold>(request, limit);
            }
            else
            {
                var response = await ToResponseAsync<BoxCollectionMarkerBased<BoxFileVersionLegalHold>>(request).ConfigureAwait(false);
                return response.ResponseObject;
            }
        }
    }