dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlArray Structure / CreateEmptyArray Method
The PgSqlType of the array elements.

CreateEmptyArray Method
Create a new instance of PgSqlArray that represents an emty array.
Syntax
'Declaration
 
Public Shared Function CreateEmptyArray( _
   ByVal type As PgSqlType _
) As PgSqlArray
 

Parameters

type
The PgSqlType of the array elements.

Return Value

Returns a new instance of PgSqlArray that represents an emty array of given type.
Remarks
Empty array is a PgSqlArray with Rank=0 and zero count of elements. But keep in mind that empty PgSqlArray is not equal to Null. When you post data at the PostgreSQL database, the Null is interpreted as db null, while empty PgSqlArray is interpreted as empty value of PostgreSQL array data type.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also