Control.AppRelativeTemplateSourceDirectory プロパティ

定義

このコントロールが含まれている Page オブジェクトまたは UserControl オブジェクトのアプリケーション相対の仮想ディレクトリを取得または設定します。

public:
 property System::String ^ AppRelativeTemplateSourceDirectory { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public string AppRelativeTemplateSourceDirectory { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.AppRelativeTemplateSourceDirectory : string with get, set
Public Property AppRelativeTemplateSourceDirectory As String

プロパティ値

String

このコントロールを格納しているページまたはユーザー コントロールのアプリケーション相対の仮想ディレクトリ。

属性

注釈

プロパティには AppRelativeTemplateSourceDirectory 、現在のコントロールを含むページまたはユーザー コントロールへのアプリケーション相対パスが含まれています。 たとえば、Web ページが存在する http://www.contoso.com/application/subdirectory場合、プロパティは AppRelativeTemplateSourceDirectory "~/サブディレクトリ" を返します。

仮想パス ("application/サブディレクトリ") を返すには、このプロパティを TemplateSourceDirectory 使用します。

適用対象