Page.Title 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置页面的标题。
public:
property System::String ^ Title { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string Title { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Title : string with get, set
Public Property Title As String
属性值
页面的标题。
- 属性
例外
该 Title 属性需要页面上的页眉控件。
注解
使用 Title 属性设置发送到请求浏览器的 HTML 标头中的页面标题。
注释
页面必须包含 head 具有属性 runat="server"的元素,否则标题将不会呈现。