PrimaryLabelAttribute Class

Defines an attribute that will define the field name that best represents the row identification to a user.

Definition

Namespace: Gemstone.ComponentModel.DataAnnotations
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
[AttributeUsageAttribute(AttributeTargets.Class)]
public sealed class PrimaryLabelAttribute : Attribute
Inheritance
Object    Attribute    PrimaryLabelAttribute

Remarks

An example of when this would be used is during a record deletion confirmation, e.g: Are you sure you want to delete "PrimaryLabel.FieldName.Value"?

Constructors

PrimaryLabelAttribute Creates a new PrimaryLabelAttribute.

Properties

FieldName Field name used as primary label.
TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)

Methods

EqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
GetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
MatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also