InMemoryWorkspaceFactoryClass

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
ISupportErrorInfo (esriSystem)
IWorkspaceFactory (esriGeoDatabase) Provides access to members that create and open workspaces and supply workspace factory information.
IWorkspaceFactory2 (esriGeoDatabase) Provides access to members that create and open workspaces and supply workspace factory information.

Remarks

An InMemoryWorkspaceFactory is used to connect to a temporary workspace which is stored in memory. These workspaces are commonly used to hold the results of an analysis operation or to hold objects in memory before persisting them to disk. When an in-memory workspace is no longer needed, it is the developer's responsibility to call IDataset.Delete on the workspace to release its memory.

InMemory workspaces support tables and simple feature classes with geometries of point, multipoint, multipatch, polyline and polygon. Zs and Ms are supported. Feature classes and tables contained within InMemory workspaces support the full geodatabase model in terms of being used in conjunction with cursors, selections, etc.

What follows is a description of what is not supported by InMemory workspaces. This list may not be exhaustive as it reflects the most commonly used aspects of the Geodatabase data model. InMemory workspaces do not support the following:

  • Feature datasets cannot be created within an InMemory workspace
  • Subtypes, Domains and Relationship Classes are not supported
  • Advanced datasets such as Topology, Geometric Networks, Terrains, Representations, Locators, Cadastral Fabrics and Network Datasets are not supported
  • Raster Catalogs and Raster Datasets are not supported within InMemory workspaces
  • Annotation and Dimension feature classes cannot be used within an InMemory Workspace
  • Custom feature classes, such as those with a class extension are not supported
The following example shows how to create an InMemory workspace.

InMemoryWorkspaceFactory is the one and only instance of its class.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.