getContentDescriptor Method

Retrieves the content descriptor which can be used to get content.

getContentDescriptor(requestOptions: ContentRequestOptions<IModelConnection>, displayType: string, keys: KeySet, selection: SelectionInfo | undefined): Promise<Descriptor | undefined>

Parameter Type Description
requestOptions ContentRequestOptions<IModelConnection> options for the request
displayType string The preferred display type of the return content.
keys KeySet Keys of ECInstances to get the content for.
selection SelectionInfo | undefined Optional selection info in case the content is being requested due to selection change.

Returns - A promise object that returns either a descriptor on success or an error string on error.

Defined in

Last Updated: 08 January, 2020