com.esri.arcgis.geodatabase
Interface IWorkspaceName2

All Superinterfaces:
IWorkspaceName, Serializable
All Known Implementing Classes:
WorkspaceName

public interface IWorkspaceName2
extends IWorkspaceName, Serializable

Provides access to members that supply workspace name information.

Remarks

IWorkspaceName2 was added to provide methods to get the connection string which describes the connection properties for the workspace. You can use this connection string to open a workspace with the Open method on IWorkspaceFactory2.

Product Availability

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


Method Summary
 String getConnectionString()
          The connection properties of the WorkspaceName.
 void setConnectionString(String connectionSting)
          The connection properties of the WorkspaceName.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IWorkspaceName
getBrowseName, getCategory, getConnectionProperties, getPathName, getType, getWorkspaceFactory, getWorkspaceFactoryProgID, setBrowseName, setConnectionProperties, setPathName, setWorkspaceFactoryProgID
 

Method Detail

getConnectionString

String getConnectionString()
                           throws IOException,
                                  AutomationException
The connection properties of the WorkspaceName.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
The connectionSting
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setConnectionString

void setConnectionString(String connectionSting)
                         throws IOException,
                                AutomationException
The connection properties of the WorkspaceName.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
connectionSting - The connectionSting (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.