The Unit type exposes the following members.

Constructors

  NameDescription
Unit
Initializes a new instance of the Unit class based on the specified unique identifier, sometimes referred to as the factory code or Well Known ID (WKID). Area units do not have an identifier.

Methods

  NameDescription
ConvertOverloaded.
Converts a measurement from one Unit to a different specified Unit of the same UnitType.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetDisplayName
Returns the name of the Unit in a format suitable for display in a user interface, in a simplified or more detailed form.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetPluralName
Returns the plural name of the Unit in a format suitable for display in a user interface, in a simplified or more detailed form.
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString
Returns a string representation of this Unit.
(Overrides Object..::.ToString()()().)
TryConvertOverloaded.
Attempts to convert a measurement from one Unit to a different specified Unit of the same UnitType.

Properties

  NameDescription
Degrees
A shortcut property to return a new Unit object representing angles in degrees.
Feet
A shortcut property to return a new Unit object representing distance in feet.
Id
Gets the unique internal identifier of this linear or angular Unit, sometimes referred to as the factory code or Well Known ID (WKID). Area units do not have an identifier.
Kilometers
A shortcut property to return a new Unit object representing distance in kilometers.
Meters
A shortcut property to return a new Unit object representing angles in meters.
Miles
A shortcut property to return a new Unit object representing distance in survey miles.
Name
Returns the name of the Unit used internally.
UnitType
Returns a value indicating if this Unit represents linear, angular or area units of measurement.

See Also