Class NameEntity
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
An Entity that has a name field.
public abstract class NameEntity : Entity, IEntity, IComparable, IIdentifiable
- Inheritance
-
NameEntity
- Implements
- Derived
- Inherited Members
Constructors
NameEntity()
Initializes a new instance of the NameEntity class.
protected NameEntity()
NameEntity(Id?)
Initializes a new instance of the NameEntity class.
protected NameEntity(Id? id)
Parameters
NameEntity(Id?, string?)
Initializes a new instance of the NameEntity class.
protected NameEntity(Id? id, string? name)
Parameters
NameEntity(NameEntity)
Initializes a new instance of the NameEntity class.
protected NameEntity(NameEntity nameEntity)
Parameters
nameEntity
NameEntityThe text entity.
Properties
Name
Gets or sets the name of this entity which identifies it and is used when displaying this entity.
public virtual string? Name { get; set; }
Property Value
Methods
CompareTo(object?)
Compares the current instance with another object of the same type.
public override int CompareTo(object? obj)
Parameters
obj
objectAn object to compare with this instance.
Returns
- int
A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than obj. Zero This instance is equal to obj. Greater than zero This instance is greater than obj.
ToString()
public override string ToString()