This documentation is archived and is not being maintained.

HostingEnvironment Properties

  Name Description
Public property Static ApplicationHost
This property supports the ASP.NET infrastructure and is not intended to be used directly from your code.
Public property Static ApplicationID
Gets the unique identifier of the application.
Public property Static ApplicationPhysicalPath
Gets the physical path on disk to the application's directory.
Public property Static ApplicationVirtualPath
Gets the root virtual path of the application.
Public property Static Cache
Gets the Cache instance for the current application.
Public property Static InitializationException
Gets any exception thrown during initialization of the HostingEnvironment object.
Public property Static IsHosted
Gets a value indicating whether the current application domain is being hosted by an ApplicationManager object.
Public property Static ShutdownReason
Returns an enumerated value that indicates why the application terminated.
Public property Static SiteName
Gets the name of the site.
Public property Static VirtualPathProvider
Gets the virtual path provider for this application.
Top
Show: