Share via


SqlConnectionInfo.PacketSize Property

Gets or sets the network packet size used by the connection to send and receive data in bytes.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
Public Property PacketSize As Integer
    Get
    Set
'Usage
Dim instance As SqlConnectionInfo
Dim value As Integer

value = instance.PacketSize

instance.PacketSize = value
public int PacketSize { get; set; }
public:
property int PacketSize {
    int get ();
    void set (int value);
}
member PacketSize : int with get, set
function get PacketSize () : int
function set PacketSize (value : int)

Property Value

Type: System.Int32
A Int32 value that specifies the network packet sized used by the connection in bytes.