This document is archived and information here might be outdated.  Recommended version.


IDatabaseConnectionInfo.ConnectedDatabase Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDatabaseConnectionInfo Interface > IDatabaseConnectionInfo.ConnectedDatabase Property
ArcGIS Developer Help

IDatabaseConnectionInfo.ConnectedDatabase Property

The name of the connected database. It may be different from the DATABASE property in the workspace's connection properties.

[Visual Basic .NET]
Public ReadOnly Property ConnectedDatabase As String
[C#]
public string ConnectedDatabase {get;}
[C++]
HRESULT get_ConnectedDatabase(
  System.String* db
);
[C++]
Parameters
db [out, retval]

db is a parameter of type BSTR*

Product Availability

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

Remarks

If the underlying DBMS does not support multiple databases or is a Personal or File Geodatabase, the ConnectedDatabase property will return an empty string.

See Also

IDatabaseConnectionInfo Interface