IWorkspaceFactory2 Interface

Provides access to members that create and open workspaces and supply workspace factory information.

Members

Name Description
Method ContainsWorkspace Indicates if parentDirectory contains a valid workspace, or is a valid file-system workspace.
Method Copy Copies a workspace to the specified destination folder.
Method Create Creates a new workspace specified by the directory, file name, and connection properties.
Method GetClassID The class ID of the WorkspaceFactory.
Method GetWorkspaceName Retrieves the workspace name of a workspace from the given list of file names.
Method IsWorkspace True if the specified file identifies a workspace supported by the workspace factory.
Method Move Moves a workspace to the specified destination folder.
Method Open Opens the workspace specified by the connection properties.
Method OpenFromFile Opens the workspace specified by the given file name.
Method OpenFromString Opens the workspace specified by a connection string.
Method ReadConnectionPropertiesFromFile The connection properties from the specified file.
Read-only property WorkspaceDescription A singular or plural description of the type of workspace the workspace factory opens/creates.
Read-only property WorkspaceType The type of workspace the workspace factory opens/creates.

IWorkspaceFactory2.OpenFromString Method

Opens the workspace specified by a connection string.

Public Function OpenFromString ( _
    ByVal connectStr As String, _
    ByVal hWnd As Integer _
) As IWorkspace
public IWorkspace OpenFromString (
    string connectStr,
    int hWnd
);

Remarks

The connect string is a collection of name value pairs separated by a semicolon (;).

The "VERSION" property is case sensitive and the correct case must be used when entering the version property.

Inherited Interfaces

Interfaces Description
IWorkspaceFactory Provides access to members that create and open workspaces and supply workspace factory information.

Classes that implement IWorkspaceFactory2

Classes Description
BDConnectionWorkspaceFactory (esriDataSourcesFile) Esri Big Data Connection Workspace Factory.
BimFileWorkspaceFactory (esriDataSourcesFile) BimFile Workspace Factory.
CadWorkspaceFactory (esriDataSourcesFile) Esri Cad Workspace Factory.
ColumnaDBWorkspaceFactory (esriDataSourcesGDB) The ColumnaDB Workspace Factory.
FileGDBWorkspaceFactory (esriDataSourcesGDB) File GeoDatabase Workspace Factory.
IMSWorkspaceFactory (esriGISClient) The IMS Workspace Factory.
InMemoryWorkspaceFactory (esriDataSourcesGDB)
PCCoverageWorkspaceFactory (esriDataSourcesFile) Esri PC ARC/INFO Workspace Factory.
PlugInWorkspaceFactory Esri Plug-In Workspace Factory.
RasterWorkspaceFactory (esriDataSourcesRaster) Provides access to members that control creation of raster workspaces.
RealtimePluginWorkspaceFactory (esriDataSourcesGDB) The Realtime Plugin Workspace Factory.
SdeWorkspaceFactory (esriDataSourcesGDB) Esri SDE Workspace Factory.
ShapefileWorkspaceFactory (esriDataSourcesFile) Esri Shapefile Workspace Factory.
SqliteWorkspaceFactory (esriDataSourcesGDB) Esri SQLite SDE Workspace Factory.
SqlWorkspaceFactory (esriDataSourcesGDB) Sql workspace factory
StreamServiceDBWorkspaceFactory (esriDataSourcesGDB) The Stream Service Workspace Factory.
TinWorkspaceFactory (esriDataSourcesFile) Esri TIN workspace factory is used to access TINs on disk.
VpfWorkspaceFactory (esriDataSourcesFile) Esri VPF Workspace Factory
WorkspaceFactory WorkspaceFactory Object.

Remarks

The IWorkspaceFactory2interface was added to allow opening of a Workspace using a connection string which describes the connection properties for the workspace. You can get a workspace's connection string using the ConnectionStringproperty on IWorkspaceName2.

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