Gets the virtual path of the directory that contains the application hosted in the current application domain.
Public Shared ReadOnly Property AppDomainAppVirtualPath As String
Dim value As String value = HttpRuntime.AppDomainAppVirtualPath
public static string AppDomainAppVirtualPath { get; }
public: static property String^ AppDomainAppVirtualPath { String^ get (); }
public static function get AppDomainAppVirtualPath () : String
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
A very handy and useful short-cut to this property is "~" (tilde) which can be used in src attributes to maintain correct paths.