DisplayAttribute.ResourceType 属性
定义
获取或设置包含 ShortName、Name、Prompt 和 Description 属性的资源的类型。Gets or sets the type that contains the resources for the ShortName, Name, Prompt, and Description properties.
public:
property Type ^ ResourceType { Type ^ get(); void set(Type ^ value); };
public Type ResourceType { get; set; }
public Type? ResourceType { get; set; }
member this.ResourceType : Type with get, set
Public Property ResourceType As Type
属性值
包含 ShortName、Name、Prompt 和 Description 属性的资源的类型。The type of the resource that contains the ShortName, Name, Prompt, and Description properties.
注解
如果此值为 null ,则 ShortName 假定、、 Name Prompt 和 Description 属性为文本、非本地化字符串。If this value is null, the ShortName, Name, Prompt, and Description properties are assumed to be literal, non-localized strings. 如果此值不为 null ,则将字符串属性假定为公共静态属性的名称,这些属性将返回实际字符串值。If this value is not null, the string properties are assumed to be the names of public static properties that return the actual string value.