SqlConnectionInfo.ConnectionProtocol 屬性
取得或設定 SQL Server 執行個體之連接所使用的網路通訊協定。
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Public Property ConnectionProtocol As NetworkProtocol
Get
Set
'用途
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)
屬性值
型別:Microsoft.SqlServer.Management.Common.NetworkProtocol
NetworkProtocol 值,指定連接所使用的網路通訊協定。