ConnectionSettings.NetworkProtocol 属性

Gets or sets the network protocol used to establish the connection to the server.

命名空间:  Microsoft.SqlServer.Management.Common
程序集:  Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)

语法

声明
Public Property NetworkProtocol As NetworkProtocol 
    Get 
    Set
用法
Dim instance As ConnectionSettings 
Dim value As NetworkProtocol 

value = instance.NetworkProtocol

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

属性值

类型:Microsoft.SqlServer.Management.Common.NetworkProtocol
A NetworkProtocol object value that specifies the network protocol used to establish the connection to the server.

请参阅

参考

ConnectionSettings 类

Microsoft.SqlServer.Management.Common 命名空间