ESRI.ArcGIS.ADF
ChangePhysicalPathOfVirtualDirectory Method
See Also  Send comments on this topic.
ESRI.ArcGIS.ADF Namespace > IISHelper Class : ChangePhysicalPathOfVirtualDirectory Method




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

Syntax

Visual Basic (Declaration) 
Public Shared Function ChangePhysicalPathOfVirtualDirectory( _
   ByVal iisLocation As String, _
   ByVal virtualDirectoryName As String, _
   ByVal newPhysicalPath As String, _
   ByRef status As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim iisLocation As String
Dim virtualDirectoryName As String
Dim newPhysicalPath As String
Dim status As String
Dim value As Boolean
 
value = IISHelper.ChangePhysicalPathOfVirtualDirectory(iisLocation, virtualDirectoryName, newPhysicalPath, status)
C# 
public static bool ChangePhysicalPathOfVirtualDirectory( 
   string iisLocation,
   string virtualDirectoryName,
   string newPhysicalPath,
   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.
newPhysicalPath
The new physical path.
status
The output status message.

Return Value

true if vdir rename succeeds, false if not.

See Also

© 2010 All Rights Reserved.