com.esri.arcgis.geodatabase
Interface ISetDefaultConnectionInfo

All Superinterfaces:
Serializable
All Known Subinterfaces:
ISetDefaultConnectionInfo2, ISetDefaultConnectionInfo3
All Known Implementing Classes:
SdeWorkspaceFactory

public interface ISetDefaultConnectionInfo
extends Serializable

Provides access to default connection information for a remote database (ArcSDE).

Superseded By

ISetDefaultConnectionInfo3

Remarks

ISetDefaultConnectionInfo is an optional interface supported by the SDEWorkspaceFactory. It allows setting of default values for the user, password and version connection properties on a per server and instance basis. These default values will be used by the Open method in those cases where the caller of the method does not supply values for these properties at call time and by the OpenFromFile method in those cases where the connection file contains partial connection information.

Product Availability

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


Method Summary
 void setParameters(String server, String instance, String user, String password, String versName)
          Sets ArcSDE connection property parameters.
 

Method Detail

setParameters

void setParameters(String server,
                   String instance,
                   String user,
                   String password,
                   String versName)
                   throws IOException,
                          AutomationException
Sets ArcSDE connection property parameters.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
server - The server (in)
instance - The instance (in)
user - The user (in)
password - The password (in)
versName - The versName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.