WebContext.Site Property

 

Gets the name of the current Web application.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

Public ReadOnly Property Site As String

Property Value

Type: System.String

The name of the current Web application.

The following example shows how to use the Site property. This code example is part of a larger example provided for the WebContext class.

' WebContext - Site.
Console.WriteLine("Site: {0}", webContext.Site.ToString())

.NET Framework
Available since 2.0
Return to top
Show: