WebContext Constructor (WebApplicationLevel, String, String, String, String, String)
.NET Framework (current version)
Initializes a new instance of the WebContext class.
Assembly: System.Web (in System.Web.dll)
new : pathLevel:WebApplicationLevel * site:string * applicationPath:string * path:string * locationSubPath:string * appConfigPath:string -> WebContext
Parameters
- pathLevel
-
Type:
System.Web.Configuration.WebApplicationLevel
A WebApplicationLevel object.
- site
-
Type:
System.String
The name of the Web site.
- applicationPath
-
Type:
System.String
The virtual path of the root level of the current Web application.
- path
-
Type:
System.String
The virtual path of the Web.config file that the current configuration object represents.
- locationSubPath
-
Type:
System.String
The path value of the location element that is currently being edited.
- appConfigPath
-
Type:
System.String
The current Web application's configuration path.
The following example shows how to use this constructor. This code example is part of a larger example provided for the WebContext class.
.NET Framework
Available since 2.0
Available since 2.0
Show: