ESRI.ArcGIS.ADF.IMS
FileName Property
See Also 
ESRI.ArcGIS.ADF.IMS.Carto Namespace > ImageDescriptor Class : FileName Property




Gets or sets the file name of the image output.

Syntax

Visual Basic (Declaration) 
Public Property FileName As String
Visual Basic (Usage)Copy Code
Dim instance As ImageDescriptor
Dim value As String
 
instance.FileName = value
 
value = instance.FileName
C# 
public string FileName {get; set;}

Remarks

By default, the ArcIMS server will generate a file name for the output image or layout file. This default name will include the server name, service name, and a randomly generated number string.

These server-generated names are created when the map is drawn, and cannot be read from this property.

This property allows the web application to specify a custom file name for the output image. Do not include the extension in the name. If an extension is included, it will be stripped from the name and the extension type ignored. If desired, change the file type with the ImageFormat property.

If the image is re-drawn with FileName set to the same name as the previous draw, the previous image file will be overwritten. If multiple clients request images close in time, they may receive a map or file that is not correct for their session. If the FileName is set by the Web application, it is recommended to have a scheme to generate unique file names.

See Also

© 2010 All Rights Reserved.