Freigeben über


WebContext.ApplicationPath Eigenschaft

Definition

Ruft den Anwendungspfad der aktuellen Webanwendung ab.

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

Eigenschaftswert

Der Anwendungspfad der aktuellen Webanwendung.

Beispiele

Das folgende Beispiel zeigt, wie die ApplicationPath Eigenschaft verwendet wird. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die WebContext Klasse bereitgestellt wird.

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

Gilt für: