getContent Method

Retrieves the content based on the supplied content descriptor override.

getContent(requestContext: ClientRequestContext, requestOptions: Paged<ContentRequestOptions<IModelDb>>, descriptorOrOverrides: Descriptor | DescriptorOverrides, keys: KeySet): Promise<Content | undefined>

Parameter Type Description
requestContext ClientRequestContext Client request context
requestOptions Paged<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 - Promise<Content | undefined>

A promise object that returns either content on success or an error string on error.

Defined in

Last Updated: 13 June, 2024