DescriptionAttribute.DescriptionValue 屬性

定義

取得或設定儲存為描述的字串。

protected:
 property System::String ^ DescriptionValue { System::String ^ get(); void set(System::String ^ value); };
protected string DescriptionValue { get; set; }
member this.DescriptionValue : string with get, set
Protected Property DescriptionValue As String

屬性值

儲存為描述的字串。 預設值為空字串 ("")。

備註

屬性的預設實作 Description 只會傳回此值。

這個額外的屬性存在,因此您可以衍生自 DescriptionAttribute 並提供本地化的版本。 衍生的可當地語系化項目 DescriptionAttribute 會維護私人布爾值欄位,以指出是否已當地語系化。 在第一次存取 屬性時 Description ,它會查閱本地化的字串,並將它儲存回 DescriptionValue 屬性中。

適用於