com.esri.arcgis.geodatabase
Interface IWorkspaceFactory2

All Superinterfaces:
IWorkspaceFactory, Serializable
All Known Implementing Classes:
AccessWorkspaceFactory, AMSWorkspaceFactory, ArcInfoWorkspaceFactory, CadWorkspaceFactory, ExcelWorkspaceFactory, FeatureServiceWorkspaceFactory, FileGDBWorkspaceFactory, GeoRSSWorkspaceFactory, IMSWorkspaceFactory, InMemoryWorkspaceFactory, IWorkspaceFactory2Proxy, LasDatasetWorkspaceFactory, NetCDFWorkspaceFactory, OLEDBWorkspaceFactory, PCCoverageWorkspaceFactory, PlugInWorkspaceFactory, RasterWorkspaceFactory, SDCWorkspaceFactory, SdeWorkspaceFactory, ShapefileWorkspaceFactory, SqlWorkspaceFactory, StreetMapWorkspaceFactory, TextFileWorkspaceFactory, TinWorkspaceFactory, ToolboxWorkspaceFactory, VpfWorkspaceFactory, WorkspaceFactory

public interface IWorkspaceFactory2
extends IWorkspaceFactory, Serializable

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

Remarks

The IWorkspaceFactory2 interface 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 ConnectionString property on IWorkspaceName2.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 IWorkspace openFromString(String connectStr, int hWnd)
          Opens the workspace specified by a connection string.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IWorkspaceFactory
containsWorkspace, copy, create, getClassID, getWorkspaceDescription, getWorkspaceName, getWorkspaceType, isWorkspace, move, open, openFromFile, readConnectionPropertiesFromFile
 

Method Detail

openFromString

IWorkspace openFromString(String connectStr,
                          int hWnd)
                          throws IOException,
                                 AutomationException
Opens the workspace specified by a connection string.

Remarks

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
connectStr - The connectStr (in)
hWnd - The hWnd (A COM typedef) (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IWorkspace
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.