ConnectionSettings.NetworkProtocol 属性

定义

标识用于连接到SQL Server的客户端网络协议。 如果未指定网络并使用本地服务器,则使用共享内存。 如果未指定网络并使用远程服务器,则使用其中一种配置的客户端协议。 异常:ConnectionCannotBeChangedException InvalidPropertyValueException

public Microsoft.SqlServer.Management.Common.NetworkProtocol NetworkProtocol { get; set; }
member this.NetworkProtocol : Microsoft.SqlServer.Management.Common.NetworkProtocol with get, set
Public Property NetworkProtocol As NetworkProtocol

属性值

适用于