DisplayAttribute.ResourceType Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the type that contains the resources for the ShortName, Name, Prompt, and Description properties.

Namespace:   System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

public Type ResourceType { get; set; }

Property Value

Type: System.Type

The type of the resource that contains the ShortName, Name, Prompt, and Description properties.

If this value is null, the ShortName, Name, Prompt, and Description properties are assumed to be literal, non-localized strings. 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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Return to top
Show: