ESRI.ArcGIS.ADF.Core
CreateVirtualDirectory(String,String,String,String,String,Boolean,Boolean,String) Method
See Also  Send Feedback
ESRI.ArcGIS.ADF Namespace > IISHelper Class > CreateVirtualDirectory Method : CreateVirtualDirectory(String,String,String,String,String,Boolean,Boolean,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.
server
Name of the server hosting the web application.
applicationPoolName
Name of application pool under which the web application will run.
setAsp20Version
Indicates whether the virual directory should be set to use ASP.NET Version 2.0.50727. If false, the virtual directory will inherit ASP.NET version from its parent Web Site.
ensureIsapiMappings
Indicates whether the virual directory should be set to use 32bit version of ISAPI dll. If false, the virtual directory will inherit ISAPI Dll path from the metabase/application pool.
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, _
   ByVal server As String, _
   ByVal applicationPoolName As String, _
   ByVal setAsp20Version As Boolean, _
   ByVal ensureIsapiMappings As Boolean, _
   ByRef status As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim iisLocation As String
Dim virtualDirectoryName As String
Dim physicalPath As String
Dim server As String
Dim applicationPoolName As String
Dim setAsp20Version As Boolean
Dim ensureIsapiMappings As Boolean
Dim status As String
Dim value As Boolean
 
value = IISHelper.CreateVirtualDirectory(iisLocation, virtualDirectoryName, physicalPath, server, applicationPoolName, setAsp20Version, ensureIsapiMappings, status)
C# 
public static bool CreateVirtualDirectory( 
   string iisLocation,
   string virtualDirectoryName,
   string physicalPath,
   string server,
   string applicationPoolName,
   bool setAsp20Version,
   bool ensureIsapiMappings,
   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.
server
Name of the server hosting the web application.
applicationPoolName
Name of application pool under which the web application will run.
setAsp20Version
Indicates whether the virual directory should be set to use ASP.NET Version 2.0.50727. If false, the virtual directory will inherit ASP.NET version from its parent Web Site.
ensureIsapiMappings
Indicates whether the virual directory should be set to use 32bit version of ISAPI dll. If false, the virtual directory will inherit ISAPI Dll path from the metabase/application pool.
status
The output status message.

Return Value

true if vdir creation succeeds, false if not

Requirements

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

See Also

© 2011 All Rights Reserved.