Sdílet prostřednictvím


WebContext.ApplicationPath Vlastnost

Definice

Získá cestu aplikace aktuální webové aplikace.

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

Hodnota vlastnosti

Cesta aplikace aktuální webové aplikace.

Příklady

Následující příklad ukazuje, jak použít ApplicationPath vlastnost. Tento příklad kódu je součástí většího příkladu uvedeného pro třídu WebContext.

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

Platí pro