Modifier

Partager via


HostingEnvironment Constructor

Definition

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.

Applies to