HostingEnvironment Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the HostingEnvironment class.
public:
HostingEnvironment();
public HostingEnvironment ();
Public Sub New ()
Exceptions
The HostingEnvironment() constructor is called more than once.
Remarks
The HostingEnvironment constructor initializes the HostingEnvironment object. The HostingEnvironment constructor is called only once by the application's ApplicationManager object. Calling the HostingEnvironment constructor more than once will cause an InvalidOperationException exception to be thrown.