HostingEnvironment.ApplicationPhysicalPath Property
.NET Framework (current version)
Gets the physical path on disk to the application's directory.
Assembly: System.Web (in System.Web.dll)
The following code example uses the ApplicationPhysicalPath property to construct a path to a data file in the application's App_Data directory. For the full code required to run the example, see the Example section of the VirtualPathProvider class overview topic.
.NET Framework
Available since 2.0
Available since 2.0
Show: