UIConnectionInfoUtil.GetServerType 方法

定義

初始化從 UIConnectionInfo 取得的伺服器類型。

多載

名稱 Description
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 的全球唯一識別碼。

傳回

從 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

參數

ci
UIConnectionInfo

連結的資訊。

傳回

從 UIConnectionInfo 物件取得的伺服器類型。

適用於