Share via


SqlConnectionInfo.ConnectionProtocol Property

Gets or sets the network protocol used by the connection to the instance of SQL Server.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
Public Property ConnectionProtocol As NetworkProtocol 
    Get 
    Set
'Usage
Dim instance As SqlConnectionInfo 
Dim value As NetworkProtocol 

value = instance.ConnectionProtocol

instance.ConnectionProtocol = value
public NetworkProtocol ConnectionProtocol { get; set; }
public:
property NetworkProtocol ConnectionProtocol {
    NetworkProtocol get ();
    void set (NetworkProtocol value);
}
member ConnectionProtocol : NetworkProtocol with get, set
function get ConnectionProtocol () : NetworkProtocol 
function set ConnectionProtocol (value : NetworkProtocol)

Property Value

Type: Microsoft.SqlServer.Management.Common.NetworkProtocol
A NetworkProtocol value that specifies the network protocol used by the connection.

See Also

Reference

SqlConnectionInfo Class

Microsoft.SqlServer.Management.Common Namespace