API Reference > imodeljs-frontend > IModelConnection > IModelConnection.CodeSpecs > getByName getByName Method Look up a CodeSpec by name. getByName(name: string): Promise<CodeSpec> throws IModelError if no CodeSpec with the specified name could be found. Parameter Type Description name string The name of the CodeSpec to load Returns - Promise<CodeSpec> The CodeSpec with the specified name Defined in core/frontend/src/IModelConnection.ts Line 861 Last Updated: 13 June, 2024