WebContext.ApplicationPath Egenskap

Definition

Hämtar programsökvägen för det aktuella webbprogrammet.

public:
 property System::String ^ ApplicationPath { System::String ^ get(); };
public string ApplicationPath { get; }
member this.ApplicationPath : string
Public ReadOnly Property ApplicationPath As String

Egenskapsvärde

Programsökvägen för det aktuella webbprogrammet.

Exempel

I följande exempel visas hur du använder egenskapen ApplicationPath . Det här kodexemplet är en del av ett större exempel för WebContext klassen.

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

Gäller för