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




Gets or sets the virtual directory location for the image output.

Syntax

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

Example

This example sets the legend's physical and virtual directories, and also sets a custom name for the file.
C#Copy Code
mapLegend.PhysicalDirectory = "C:\\ArcIMS\\Output\\test"; 

mapLegend.VirtualDirectory = "http://localhost/Output/test"; 

mapLegend.FileName = "MyLegend"; 

    
Visual BasicCopy Code
mapLegend.PhysicalDirectory = "C:\\ArcIMS\\Output\\test"

mapLegend.VirtualDirectory = "http://localhost/Output/test"

mapLegend.FileName = "MyLegend"

Remarks

This is the virtual directory where the image will be retrieved. This location is used in the server response to specify the URL of the legend image.

Normally it is not necessary to change the VirtualDirectory. If either VirtualDirectory or PhysicalDirectory is changed, ensure that both point to the same location.

This property will be empty upon initialization of the Legend.

See Also

© 2010 All Rights Reserved.