共用方式為


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

適用於