WebContext.ApplicationPath Property

 

Gets the application path of the current Web application.

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

Public ReadOnly Property ApplicationPath As String

Property Value

Type: System.String

The application path of the current Web application.

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

' WebContext - Application Path.
Console.WriteLine("ApplicationPath: {0}", _
  webContext.ApplicationPath.ToString())

.NET Framework
Available since 2.0
Return to top
Show: