WebContext.ApplicationPath プロパティ

定義

現在の Web アプリケーションのアプリケーション パスを取得します。

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

プロパティ値

現在の Web アプリケーションのアプリケーション パス。

次の例は、 ApplicationPath プロパティの使用方法を示しています。 このコード例は、 WebContext クラスに提供されるより大きな例の一部です。

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

適用対象