getContentSetSize Method

Retrieves the content set size based on the supplied content descriptor override.

getContentSetSize(requestContext: ClientRequestContext, requestOptions: ContentRequestOptions<IModelDb>, descriptorOrOverrides: Descriptor | DescriptorOverrides, keys: KeySet): Promise<number>

Parameter Type Description
requestContext ClientRequestContext Client request context
requestOptions ContentRequestOptions<IModelDb> options for the request
descriptorOrOverrides Descriptor | DescriptorOverrides Content descriptor or its overrides specifying how the content should be customized
keys KeySet Keys of ECInstances to get the content for.

Returns - A promise object that returns either a number on success or an error string on error. Even if concrete implementation returns content in pages, this function returns the total number of records in the content set.

Defined in

Last Updated: 08 January, 2020