getProject Method

Gets a specific iTwin project context.

getProject(requestContext: AuthorizedClientRequestContext, queryOptions?: ContextRegistryRequestQueryOptions): Promise<Project>

Parameter Type Description
requestContext AuthorizedClientRequestContext The client request context
queryOptions ContextRegistryRequestQueryOptions Query options. Use the mapped EC property names in the query strings and not the TypeScript property names.

Returns - Promise<Project>

Resolves to the found project. Rejects if no projects, or more than one project is found.

Defined in

Last Updated: 12 June, 2024