Initializes a new instance of the PostgreSqlLayer class.


Namespace: ActualMap.Data
Assembly: ActualMap (in ActualMap.dll)

Syntax

Visual Basic (Declaration)
Public Sub New( _ 
   ByVal providerName As String,  _ 
   ByVal connectionString As String,  _ 
   ByVal tableName As String,  _ 
   ByVal spatialDataField As String _ 
)
C#
public PostgreSqlLayer(
   string providerName,
   string connectionString,
   string tableName,
   string spatialDataField
)
C++
public:
 PostgreSqlLayer(
   String providerName,
   String connectionString,
   String tableName,
   String spatialDataField
) sealed 
J#
public PostgreSqlLayer(
   string providerName,
   string connectionString,
   string tableName,
   string spatialDataField
)
JScript
public function PostgreSqlLayer(
   providerName : String,
   connectionString : String,
   tableName : String,
   spatialDataField : String
)

Parameters

providerName
Specifes the PostgreSqlLayer provider name. The provider must implement the System.Data.Common.DbProviderFactory class.
connectionString
Specifes the string used to open a database.
tableName
Specifes the table name.
spatialDataField
Specifes the name of the Geometry or and Geography data field. The type of the field is specified by the DataType property.

Exceptions

Exception TypeCondition
ExceptionThrown when an error occurs.

See Also