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
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
參數
連接的資訊。
傳回
要從 UIConnectionInfo 物件取得的伺服器類型。