SqlConnectionStringBuilder.PacketSize Property


获取或设置用来与 SQL Server 的实例通信的网络数据包的大小(以字节为单位)。Gets or sets the size in bytes of the network packets used to communicate with an instance of SQL Server.

 property int PacketSize { int get(); void set(int value); };
public int PacketSize { get; set; }
member this.PacketSize : int with get, set
Public Property PacketSize As Integer

Property Value


PacketSize 属性的值;如果未提供任何值,则为 8000。The value of the PacketSize property, or 8000 if none has been supplied.


此属性与连接字符串内的“Packet Size”键相对应。This property corresponds to the "Packet Size" key within the connection string.

Applies to

See also