ConnectionSettings.NetworkProtocol 屬性
取得或設定用來建立與伺服器之連接的網路通訊協定。
命名空間: 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
NetworkProtocol 物件值,指定用來建立伺服器連接的網路通訊協定。