UIConnectionInfoUtil.GetPacketSize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns packet size for SQL connection from the first connection information in the list.
Overloads
GetPacketSize(UIConnectionGroupInfo) |
Returns packet size for SQL connection with the specified connection information list. |
GetPacketSize(UIConnectionInfo) |
Returns packet size for SQL connection info encapsulated by UIConnectionInfo. |
GetPacketSize(UIConnectionGroupInfo)
Returns packet size for SQL connection with the specified connection information list.
public:
static int GetPacketSize(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ connectionInfoList);
public static int GetPacketSize (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo connectionInfoList);
static member GetPacketSize : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo -> int
Public Shared Function GetPacketSize (connectionInfoList As UIConnectionGroupInfo) As Integer
Parameters
- connectionInfoList
- UIConnectionGroupInfo
The list of the connection information.
Returns
The packet size for SQL connection.
Applies to
GetPacketSize(UIConnectionInfo)
Returns packet size for SQL connection info encapsulated by UIConnectionInfo.
public:
static int GetPacketSize(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ ci);
public static int GetPacketSize (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo ci);
static member GetPacketSize : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo -> int
Public Shared Function GetPacketSize (ci As UIConnectionInfo) As Integer
Parameters
The information of the connection.
Returns
The packet size if it is set or -1 if it is not set.