![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
VirtualDirectory Property | |
See Also Example Send Feedback |
ESRI.ArcGIS.ADF.IMS.Carto Namespace > Legend Class : VirtualDirectory Property |
Visual Basic (Declaration) | |
---|---|
Public Property VirtualDirectory As String |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Legend Dim value As String instance.VirtualDirectory = value value = instance.VirtualDirectory |
C# | |
---|---|
public string VirtualDirectory {get; set;} |
This example sets the legend's physical and virtual directories, and also sets a custom name for the file.
C# | ![]() |
---|---|
mapLegend.PhysicalDirectory = "C:\\ArcIMS\\Output\\test"; mapLegend.VirtualDirectory = "http://localhost/Output/test"; mapLegend.FileName = "MyLegend"; |
Visual Basic | ![]() |
---|---|
mapLegend.PhysicalDirectory = "C:\\ArcIMS\\Output\\test" mapLegend.VirtualDirectory = "http://localhost/Output/test" mapLegend.FileName = "MyLegend" |
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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family