DisplayAttribute.ResourceType 属性

定义

获取或设置包含 ShortNameNamePromptDescription 属性的资源的类型。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

属性值

Type

包含 ShortNameNamePromptDescription 属性的资源的类型。The type of the resource that contains the ShortName, Name, Prompt, and Description properties.

注解

如果此值为 null ,则 ShortName 假定、、 Name PromptDescription 属性为文本、非本地化字符串。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.

适用于