Title.Name 属性

定义

获取或设置 Title 对象的唯一名称。Gets or sets the unique name of a Title object.

public:
 virtual property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public override string Name { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.Name : string with get, set
Public Overrides Property Name As String

属性值

String

一个 string 值,表示标题对象的唯一名称。A string value that represents the unique name of the title object.

属性

注解

标题对象的名称必须唯一;否则,将引发异常。The name of a title object must be unique; otherwise an exception will be thrown.

从对象中检索对象时,此属性可用作索引器 Title TitleCollectionThis property can be used as the indexer when you retrieve a Title object from the TitleCollection object.

如果将此属性设置为长度为零的字符串,则会引发异常。If this property is set to a zero-length string, an exception will be thrown.

适用于