UIConnectionInfoUtil.GetServerType 方法

定义

初始化要从 UIConnectionInfo 获取的服务器的类型。

重载

GetServerType(Guid)

指定要从 UIConnectionInfo 对象获取的服务器的类型。

GetServerType(ServerType)

确定要从 UIConnectionInfo 获取的服务器的类型。

GetServerType(UIConnectionInfo)

确定要从 UIConnectionInfo 对象获取的服务器的类型。

GetServerType(Guid)

指定要从 UIConnectionInfo 对象获取的服务器的类型。

public:
 static Microsoft::SqlServer::Management::UI::ConnectionDlg::IServerType ^ GetServerType(Guid serverTypeGuid);
public static Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType GetServerType (Guid serverTypeGuid);
static member GetServerType : Guid -> Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType
Public Shared Function GetServerType (serverTypeGuid As Guid) As IServerType

参数

serverTypeGuid
Guid

服务器类型的全局唯一标识符。

返回

IServerType

要从 UIConnectionInfo 获取的服务器的类型。

适用于

GetServerType(ServerType)

确定要从 UIConnectionInfo 获取的服务器的类型。

public:
 static Microsoft::SqlServer::Management::UI::ConnectionDlg::IServerType ^ GetServerType(Microsoft::SqlServer::Management::Common::ServerType serverType);
public static Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType GetServerType (Microsoft.SqlServer.Management.Common.ServerType serverType);
static member GetServerType : Microsoft.SqlServer.Management.Common.ServerType -> Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType
Public Shared Function GetServerType (serverType As ServerType) As IServerType

参数

serverType
ServerType

UIConnectionInfo 的 serverType。

返回

IServerType

要从 UIConnectionInfo 获取的服务器的类型。

适用于

GetServerType(UIConnectionInfo)

确定要从 UIConnectionInfo 对象获取的服务器的类型。

public:
 static Microsoft::SqlServer::Management::UI::ConnectionDlg::IServerType ^ GetServerType(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ ci);
public static Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType GetServerType (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo ci);
static member GetServerType : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo -> Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType
Public Shared Function GetServerType (ci As UIConnectionInfo) As IServerType

参数

ci
UIConnectionInfo

连接的信息。

返回

IServerType

要从 UIConnectionInfo 对象获取的服务器的类型。

适用于