ESRI.ArcGIS.ADF
CreateVirtualDirectory(String,String,String,String) Method
See Also  Send comments on this topic.
ESRI.ArcGIS.ADF Namespace > IISHelper Class > CreateVirtualDirectory Method : CreateVirtualDirectory(String,String,String,String) Method




iisLocation
The Active Directory path of the IIS website. Use GetIISLocation method to get the path.
virtualDirectoryName
The name of the virtual directory.
physicalPath
The physical path.
status
The output status message.
Create a web application with the virtual directory name. The physical path of the virtual directory is passed in as a parameter.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function CreateVirtualDirectory( _
   ByVal iisLocation As String, _
   ByVal virtualDirectoryName As String, _
   ByVal physicalPath As String, _
   ByRef status As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim iisLocation As String
Dim virtualDirectoryName As String
Dim physicalPath As String
Dim status As String
Dim value As Boolean
 
value = IISHelper.CreateVirtualDirectory(iisLocation, virtualDirectoryName, physicalPath, status)
C# 
public static bool CreateVirtualDirectory( 
   string iisLocation,
   string virtualDirectoryName,
   string physicalPath,
   out string status
)

Parameters

iisLocation
The Active Directory path of the IIS website. Use GetIISLocation method to get the path.
virtualDirectoryName
The name of the virtual directory.
physicalPath
The physical path.
status
The output status message.

Return Value

true if vdir creation succeeds, false if not

See Also

© 2010 All Rights Reserved.