ConnectionConsumerAttribute.DisplayNameValue Property

Definition

Gets or sets the string used as the value of the DisplayName property, for use in localization scenarios.

protected string DisplayNameValue { get; set; }

Property Value

A string that is used as the value of DisplayName.

Remarks

This extra property exists so that you can derive from ConnectionConsumerAttribute and provide a localized version. The derived localizable ConnectionConsumerAttribute attribute will maintain a private Boolean field to indicate whether it has been localized. On the first access to the DisplayName property, it will look up the localized string, and then use the DisplayNameValue property to assign the localized value to the DisplayName property.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also