UIConnectionInfoUtil.GetConnectionProtocol 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.
Retrieves the SqlManagement Core NetworkProtocol object indicating the connection protocol.
Overloads
GetConnectionProtocol(UIConnectionGroupInfo) |
Returns a SqlManagement Core NetworkProtocol object indicating the connection protocol from the first connection information in the list. |
GetConnectionProtocol(UIConnectionInfo) |
Returns a SqlManagement Core NetworkProtocol object indicating the connection protocol that has the specified connection information. |
GetConnectionProtocol(String) |
Returns a SqlManagement Core NetworkProtocol object indicating the connection protocol that has the specified protocol name. |
GetConnectionProtocol(UIConnectionGroupInfo)
Returns a SqlManagement Core NetworkProtocol object indicating the connection protocol from the first connection information in the list.
public:
static Microsoft::SqlServer::Management::Common::NetworkProtocol GetConnectionProtocol(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ connectionInfoList);
public static Microsoft.SqlServer.Management.Common.NetworkProtocol GetConnectionProtocol (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo connectionInfoList);
static member GetConnectionProtocol : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo -> Microsoft.SqlServer.Management.Common.NetworkProtocol
Public Shared Function GetConnectionProtocol (connectionInfoList As UIConnectionGroupInfo) As NetworkProtocol
Parameters
- connectionInfoList
- UIConnectionGroupInfo
The list of the connection information.
Returns
The SqlManagement Core NetworkProtocol object.
Applies to
GetConnectionProtocol(UIConnectionInfo)
Returns a SqlManagement Core NetworkProtocol object indicating the connection protocol that has the specified connection information.
public:
static Microsoft::SqlServer::Management::Common::NetworkProtocol GetConnectionProtocol(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ ci);
public static Microsoft.SqlServer.Management.Common.NetworkProtocol GetConnectionProtocol (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo ci);
static member GetConnectionProtocol : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo -> Microsoft.SqlServer.Management.Common.NetworkProtocol
Public Shared Function GetConnectionProtocol (ci As UIConnectionInfo) As NetworkProtocol
Parameters
The information of the connection.
Returns
The SqlManagement Core NetworkProtocol object.
Applies to
GetConnectionProtocol(String)
Returns a SqlManagement Core NetworkProtocol object indicating the connection protocol that has the specified protocol name.
public:
static Microsoft::SqlServer::Management::Common::NetworkProtocol GetConnectionProtocol(System::String ^ protocolName);
public static Microsoft.SqlServer.Management.Common.NetworkProtocol GetConnectionProtocol (string protocolName);
static member GetConnectionProtocol : string -> Microsoft.SqlServer.Management.Common.NetworkProtocol
Public Shared Function GetConnectionProtocol (protocolName As String) As NetworkProtocol
Parameters
- protocolName
- String
A string that represents the name of the protocol.
Returns
The SqlManagement Core NetworkProtocol object.