Export (0) Print
Expand All

DisplayAttribute.GetShortName Method

Retrieves the localized or non-localized value of the ShortName property.

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

public string GetShortName()

Return Value

Type: System.String
The localized value for the group name when the ResourceType property is specified and the ShortName property represents a resource name; otherwise, the non-localized value specified in the ShortName property.

Do not use the get accessor of the ShortName property to retrieve the text to display in your Silverlight application. Instead, use the GetShortName method to retrieve the short name value. The GetShortName method returns either the literal non-localized string or the localized string when a resource type is specified.


Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2014 Microsoft