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




iisLocation
The Active Directory path of the IIS website. Use GetIISLocation method to get the path.
oldDirectoryName
The old virtual directory name.
newDirectoryName
The new virtual directory name.
status
The output status message.
Rename a virtual directory.

Syntax

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

Parameters

iisLocation
The Active Directory path of the IIS website. Use GetIISLocation method to get the path.
oldDirectoryName
The old virtual directory name.
newDirectoryName
The new virtual directory name.
status
The output status message.

Return Value

true if vdir rename succeeds, false if not

See Also

© 2010 All Rights Reserved.