UIConnectionInfoUtil.GetConnectionProtocol Method

Definition

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

ci
UIConnectionInfo

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.

Applies to