Initializes a new instance of the SqlServerLayer class.


Namespace: AspMap.Data
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

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

Parameters

connectionString
Specifes the string used to open a database.
tableName
Specifes the table name.
spatialDataField
Specifes the name of the Geography or Geometry data field. The type of the field is specified by the DataType property.

Exceptions

Exception TypeCondition
ExceptionThrown when an error occurs.

See Also