UIConnectionInfoUtil.GetServerType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes the type of server to get from UIConnectionInfo.
Overloads
GetServerType(Guid) |
Specifies the type of server to get from the UIConnectionInfo object. |
GetServerType(ServerType) |
Determines the type of server to get from UIConnectionInfo. |
GetServerType(UIConnectionInfo) |
Determines the type of server to get from the UIConnectionInfo object. |
GetServerType(Guid)
Specifies the type of server to get from the UIConnectionInfo object.
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
Parameters
- serverTypeGuid
- Guid
The globally unique identifier of the serverType.
Returns
The type of server to get from UIConnectionInfo.
Applies to
GetServerType(ServerType)
Determines the type of server to get from 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
Parameters
- serverType
- ServerType
The serverType of UIConnectionInfo.
Returns
The type of server to get from UIConnectionInfo.
Applies to
GetServerType(UIConnectionInfo)
Determines the type of server to get from the UIConnectionInfo object.
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
Parameters
The information of the connection.
Returns
The type of server to get from the UIConnectionInfo object.