This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Enum Methods
The methods of the Enum class are listed below. For a complete list of Enum class members, see the Enum Members topic.
Public:
CompareTo |
Compares the current value to that of an object. |
Equals (inherited from ValueType) |
Indicates whether this instance and another object are equal. |
Format |
Overloaded. Converts an enumeration value to human readable format. |
FromString |
Overloaded. Converts a string to an enumerated value. |
GetHashCode (inherited from ValueType) |
Returns the hash code for this instance. |
GetType (inherited from Object) |
Gets the Type of the Object. |
GetTypeCode |
[To be supplied.] |
GetUnderlyingType |
Returns the underlying type of the enumeration. |
GetValues |
Returns the values of the enumeration members of the given Enum. |
IsDefined |
Determines if a given value (string, value or instance) is one of the defined values of the specified enumeration. |
ToBoolean |
Converts the current value to a Boolean value based on the underlying type. |
ToByte |
Converts the current value to an 8-bit unsigned integer based on the underlying type. |
ToChar |
Converts the current value to a unicode character based on the underlying type. |
ToDateTime |
Converts the current value to a DateTime based on the underlying type. |
ToDecimal |
Converts the current value to a Decimal based on the underlying type. |
ToDouble |
Converts the current value to a double-precision floating point number based on the underlying type. |
ToInt16 |
Converts the current value to a 16-bit signed integer based on the underlying type. |
ToInt32 |
Converts the current value to a 32-bit signed integer based on the underlying type. |
ToInt64 |
Converts the current value to a 64-bit signed integer based on the underlying type. |
ToObject |
Overloaded. Returns an instance of the given enumeration type set to the given value. |
ToSByte |
Converts the current value to an 8-bit signed integer based on the underlying type. |
ToSingle |
Converts the current value to a single-precision floating point number based on the underlying type. |
ToString |
Returns the decimal value of this instance as a string. |
ToType |
Converts the current value to a specified type based on the underlying type. |
ToUInt16 |
Converts the current value to a 16-bit unsigned integer based on the underlying type. |
ToUInt32 |
Converts the current value to a 32-bit unsigned integer based on the underlying type. |
ToUInt64 |
Converts the current value to a 64-bit unsigned integer based on the underlying type. |
Protected:
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
Enum Class | System Namespace