Search
Map.FromFile Method (String, Boolean, String)
See Also
 





Creates and loads a map from the specified file.

Namespace: MindFusion.Mapping
Assembly: MindFusion.Mapping

 Syntax

C#  Copy Code

public static Map FromFile (
    string fileName,
    bool loadDatabase,
    string labelField
)

Visual Basic  Copy Code

Public Shared Function FromFile( _
    fileName As String, _
    loadDatabase As Boolean, _
    labelField As String _
) As Map

 Parameters

fileName

Specifies the file name of an ESRI map file.

loadDatabase

true to load the database associated with the specified map file, otherwise false.

labelField

A string specifying the name of the database column whose fields should be used as map element labels.

 Return Value

The Map loaded from the specified file.

 Remarks

If the database is loaded, it is represented by an instance of the Database class exposed via the Database property. Additionally, each Shape in the map has its DatabaseRow property set to an object representing the corresponding data record.

 See Also