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

serverType 的全域唯一識別碼。

傳回

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 物件取得的伺服器類型。

適用於