ESRI.ArcGIS.ADF.Core
VirtualDirectoryExists Method
See Also  Send Feedback
ESRI.ArcGIS.ADF Namespace > IISHelper Class : VirtualDirectoryExists Method




iisLocation
The Active Directory path of the IIS website. Use GetIISLocation method to get the path.
virtualDirectoryName
The name of the virtual directory.
status
The output status message.
Check if a virtual directory exists.

Syntax

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

Return Value

true if the virtual directory exists, 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.