共用方式為


SqlConnectionInfo.DefaultNetworkProtocol 欄位

The NetworkProtocol object that specifies the default network protocol for the connection.

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public Shared ReadOnly DefaultNetworkProtocol As NetworkProtocol
'用途
Dim value As NetworkProtocol 

value = SqlConnectionInfo.DefaultNetworkProtocol
public static readonly NetworkProtocol DefaultNetworkProtocol
public:
static initonly NetworkProtocol DefaultNetworkProtocol
static val DefaultNetworkProtocol: NetworkProtocol
public static final var DefaultNetworkProtocol : NetworkProtocol

請參閱

參考

SqlConnectionInfo 類別

Microsoft.SqlServer.Management.Common 命名空間