Control.AppRelativeTemplateSourceDirectory Control.AppRelativeTemplateSourceDirectory Control.AppRelativeTemplateSourceDirectory Control.AppRelativeTemplateSourceDirectory Property

定义

获取或设置包含该控件的 PageUserControl 对象的应用程序相对虚拟目录。Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control.

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

属性值

包含该控件的页或用户控件的应用程序相对虚拟目录。The application-relative virtual directory of the page or user control that contains this control.

注解

AppRelativeTemplateSourceDirectory属性包含指向包含当前控件的页面或用户控件的应用程序相对路径。The AppRelativeTemplateSourceDirectory property contains the application-relative path to the page or user control that contains the current control. 例如,如果网页位于http://www.contoso.com/application/subdirectory,则AppRelativeTemplateSourceDirectory属性返回 "~/subdirectory"。For example, if the Web page resides at http://www.contoso.com/application/subdirectory, the AppRelativeTemplateSourceDirectory property returns "~/subdirectory".

若要返回虚拟路径("应用程序/子目录"),请TemplateSourceDirectory使用属性。To return the virtual path ("application/subdirectory"), use the TemplateSourceDirectory property.

适用于