UIConnectionInfoUtil.GetServerType 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化要从 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
服务器类型的全局唯一标识符。
返回
要从 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。
返回
要从 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
参数
连接的信息。
返回
要从 UIConnectionInfo 对象获取的服务器的类型。