UIConnectionInfoUtil.GetConnectionProtocol UIConnectionInfoUtil.GetConnectionProtocol UIConnectionInfoUtil.GetConnectionProtocol Method

Definition

Retrieves the SqlManagement Core NetworkProtocol object indicating the connection protocol.

Overloads

GetConnectionProtocol(UIConnectionGroupInfo) GetConnectionProtocol(UIConnectionGroupInfo) GetConnectionProtocol(UIConnectionGroupInfo)

Returns a SqlManagement Core NetworkProtocol object indicating the connection protocol from the first connection information in the list.

GetConnectionProtocol(UIConnectionInfo) GetConnectionProtocol(UIConnectionInfo) GetConnectionProtocol(UIConnectionInfo)

Returns a SqlManagement Core NetworkProtocol object indicating the connection protocol that has the specified connection information.

GetConnectionProtocol(String) GetConnectionProtocol(String) GetConnectionProtocol(String)

Returns a SqlManagement Core NetworkProtocol object indicating the connection protocol that has the specified protocol name.

GetConnectionProtocol(UIConnectionGroupInfo) GetConnectionProtocol(UIConnectionGroupInfo) 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);
Public Shared Function GetConnectionProtocol (connectionInfoList As UIConnectionGroupInfo) As NetworkProtocol
Parameters
connectionInfoList
UIConnectionGroupInfo UIConnectionGroupInfo UIConnectionGroupInfo

The list of the connection information.

Returns
Microsoft.SqlServer.Management.Common.NetworkProtocol Microsoft.SqlServer.Management.Common.NetworkProtocol Microsoft.SqlServer.Management.Common.NetworkProtocol

The SqlManagement Core NetworkProtocol object.

GetConnectionProtocol(UIConnectionInfo) GetConnectionProtocol(UIConnectionInfo) 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);
Public Shared Function GetConnectionProtocol (ci As UIConnectionInfo) As NetworkProtocol
Parameters
ci
UIConnectionInfo UIConnectionInfo UIConnectionInfo

The information of the connection.

Returns
Microsoft.SqlServer.Management.Common.NetworkProtocol Microsoft.SqlServer.Management.Common.NetworkProtocol Microsoft.SqlServer.Management.Common.NetworkProtocol

The SqlManagement Core NetworkProtocol object.

GetConnectionProtocol(String) GetConnectionProtocol(String) 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);
Public Shared Function GetConnectionProtocol (protocolName As String) As NetworkProtocol
Parameters
protocolName
String String String

A string that represents the name of the protocol.

Returns
Microsoft.SqlServer.Management.Common.NetworkProtocol Microsoft.SqlServer.Management.Common.NetworkProtocol Microsoft.SqlServer.Management.Common.NetworkProtocol

The SqlManagement Core NetworkProtocol object.

Applies to