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




Sets the file name for the output.

Syntax

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

Example

For an example, see the VirtualDirectory property.

Remarks

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

This property allows the web application to specify a custom file name for the legend 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 MapView's ImageDescriptor property.

If the legend is regenerated with FileName set to the same name, the legend image will be overwritten. If multiple clients request images close in time, they may receive a legend that is not correct for the map. If the FileName is set by the Web application, it is recommended to have a scheme to generate unique file names.

This property will be empty upon initialization of the Legend.

See Also

© 2010 All Rights Reserved.