FileDataSet.FileName Property
Gets or sets the name of the file to read from.
Syntax
public System.String FileName { get; set; }
Property Value
Default: Differs depending on type. See the table below.
The file to read data from.
This property can only be modified before the dataset has been initialized. Attempting to modify it after initialization will cause an exception to be thrown.
Default values
Class | Default value |
---|---|
AixmDataSet | "*.xml" Only writable before initialization. |
ArincDataSet | "" Only writable before initialization. |
CmrgDataSet | Not used. Only writable before initialization. |
DemDataSet | "*.dem" Only writable before initialization. |
DfadDataSet | "*.2nd" Only writable before initialization. |
DtedDataSet | "*.dt0" Only writable before initialization. |
DwgDxfDataSet | "*.dwg" Only writable before initialization. |
EcwDataSet | "*.ecw" Only writable before initialization. |
GdalDataSet | "*.tif" Only writable before initialization. |
GribDataSet | "*.grib" Only writable before initialization. |
GridAsciiDataSet | "*.asc" Only writable before initialization. |
HdrDataSet | "*.dem" Only writable before initialization. |
ImageDataSet | "*.tif" Only writable before initialization. |
Jpeg2000DataSet | "*.jp2" Only writable before initialization. |
MapPackageDataSet | "" Only writable before initialization. |
MifDataSet | "*.mif" Only writable before initialization. |
MrSidDataSet | "*.sid" Only writable before initialization. |
OgrDataSet | "" Only writable before initialization. |
RpfDataSet | Not used. Only writable before initialization. |
S57DataSet | "*.000" Only writable before initialization. |
ShapefileDataSet | "*.shp" Only writable before initialization. |
VpfDataSet | Not used. Only writable before initialization. |
Remarks
If Path is an empty string, the full filename, including path, may be specified with this property. See the Path property how absolute and relative paths are interpreted.
For subclasses that are also subclasses of MultiFileDataSet the filename may contain wildcard characters, used to specify multiple files to load. A question mark matches exactly one character, and an asterisk matches zero or more characters. For instance, "A??_*.tif" will match all files beginning with an A, with the fourth character an underscore, and with a file extension of ".tif".
This property supports Virtual paths.
Platforms
Windows, Linux, Android