DescriptionAttribute.DescriptionValue Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the string stored as the description.
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
Property Value
The string stored as the description. The default value is an empty string ("").
Remarks
The default implementation of the Description property simply returns this value.
This extra property exists so that you can derive from DescriptionAttribute and provide a localized version. The derived localizable DescriptionAttribute will maintain a private Boolean field to indicate if it has been localized. On the first access to the Description property, it will look up the localized string and store it back in the DescriptionValue property.
Applies to
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ