Initializes a new instance of the MySqlLayer class.


Namespace: AspMap.Data
Assembly: AspMapNET (in AspMapNET.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 MySqlLayer(
   string providerName,
   string connectionString,
   string tableName,
   string spatialDataField
)
C++
public:
 MySqlLayer(
   String providerName,
   String connectionString,
   String tableName,
   String spatialDataField
) sealed 
J#
public MySqlLayer(
   string providerName,
   string connectionString,
   string tableName,
   string spatialDataField
)
JScript
public function MySqlLayer(
   providerName : String,
   connectionString : String,
   tableName : String,
   spatialDataField : String
)

Parameters

providerName
Specifes the MySql 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 data field.

Exceptions

Exception TypeCondition
ExceptionThrown when an error occurs.

See Also