WebContext Constructor (WebApplicationLevel, String, String, String, String, String)

 

Initializes a new instance of the WebContext class.

Namespace:   System.Web.Configuration
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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: