UIConnectionInfoUtil.GetDatabaseName Method

Definition

Retrieves the database name from the connection object from the first connection information in the list.

Overloads

GetDatabaseName(UIConnectionGroupInfo)

Retrieves the database name from the connection object with the specified connection information list.

GetDatabaseName(UIConnectionInfo)

Retrieves the database name from the connection object with specified connection information.

GetDatabaseName(UIConnectionGroupInfo)

Retrieves the database name from the connection object with the specified connection information list.

public:
 static System::String ^ GetDatabaseName(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ connectionInfoList);
public static string GetDatabaseName (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo connectionInfoList);
static member GetDatabaseName : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo -> string
Public Shared Function GetDatabaseName (connectionInfoList As UIConnectionGroupInfo) As String

Parameters

connectionInfoList
UIConnectionGroupInfo

The list of the connection information.

Returns

The database name from the connection object.

Applies to

GetDatabaseName(UIConnectionInfo)

Retrieves the database name from the connection object with specified connection information.

public:
 static System::String ^ GetDatabaseName(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ ci);
public static string GetDatabaseName (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo ci);
static member GetDatabaseName : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo -> string
Public Shared Function GetDatabaseName (ci As UIConnectionInfo) As String

Parameters

ci
UIConnectionInfo

The information of the connection.

Returns

The database name from the connection object.

Applies to