MGMapLayerSetup.DataFile   Go to object model Go to parent topic Go to previous topic Go to next topic

Description

Gets or sets the name of the data file from which Autodesk MapGuide Server retrieves map data for this layer.

Returns an empty string if this property does not apply.

If this property is modified successfully, it automatically sets the layer's rebuild flag to True. See Rebuild for details.

Note that for write operations, this property does not work during a busy state. For additional information, refer to "Handling Busy State and Map Refresh" chapter in the Autodesk MapGuide Developer's Guide.

This property does not apply to Text and Point map layers from OLE DB data sources, or to Buffer or Redline map layers.

For Text, Point, Polyline and Polygon map layers from Spatial Data Provider (SDP) data sources, this property is the same as the SdpFeatureTable property. We strongly encourage you to use SdpFeatureTable instead.

For GIS Design Server layers, this will get or set the database and theme name, separated by a vertical bar delimiter (for example, configuration name| theme name).

For DWG layers, this property will get or set the Autodesk DWG file. This use of this property is retained for backward compatibility and will be deprecated in the next release. Instead, you should use the MGDwgDataSources.Dwg property.

Type

String (read/write)

Error Codes

-1 (busy): For write operations only.

-15 (does not apply)

See Also

getDataFile, setDataFile, getSdpFeatureTable, setSdpFeatureTable, SdpFeatureTable, getDwg, setDwg, Dwg