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

适用于