Enum Methods

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The Enum type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 CompareTo Compares this instance to a specified object and returns an indication of their relative values.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueType.Equals(Object).)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetHashCode Returns the hash code for the value of this instance. (Overrides ValueType.GetHashCode().)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetName Retrieves the name of the constant in the specified enumeration that has the specified value.
Public methodStatic member GetNames Retrieves an array of the names of the constants in a specified enumeration.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetTypeCode Returns the underlying TypeCode for this instance.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetUnderlyingType Returns the underlying type of the specified enumeration.
Public methodStatic member GetValues Retrieves an array of the values of the constants in a specified enumeration.
Public method HasFlag Determines whether one or more bit fields are set in the current instance.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 IsDefined Returns an indication whether a constant with a specified value exists in a specified enumeration.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Parse Converts the string representation of the name or numeric value of one or more enumerated constants to an equivalent enumerated object. A parameter specifies whether the operation is case-insensitive.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToObject Returns an instance of the specified enumeration set to the specified value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString() Converts the value of this instance to its equivalent string representation. (Overrides ValueType.ToString().)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(IFormatProvider) Obsolete. This method overload is obsolete; use Enum.ToString().
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(String) Converts the value of this instance to its equivalent string representation using the specified format.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(String, IFormatProvider) Obsolete. This method overload is obsolete; use Enum.ToString(String).
Public methodStatic member TryParse<TEnum>(String, TEnum%) Converts the string representation of the name or numeric value of one or more enumerated constants to an equivalent enumerated object. The return value indicates whether the conversion succeeded.
Public methodStatic member TryParse<TEnum>(String, Boolean, TEnum%) Converts the string representation of the name or numeric value of one or more enumerated constants to an equivalent enumerated object. A parameter specifies whether the operation is case-sensitive. The return value indicates whether the conversion succeeded.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToBoolean Infrastructure. Converts the current value to a Boolean value based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToByte Infrastructure. Converts the current value to an 8-bit unsigned integer based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToChar Infrastructure. Converts the current value to a Unicode character based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToDateTime Infrastructure. Converts the current value to a DateTime based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToDecimal Infrastructure. Converts the current value to a Decimal based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToDouble Infrastructure. Converts the current value to a double-precision floating point number based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToInt16 Infrastructure. Converts the current value to a 16-bit signed integer based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToInt32 Infrastructure. Converts the current value to a 32-bit signed integer based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToInt64 Infrastructure. Converts the current value to a 64-bit signed integer based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToSByte Infrastructure. Converts the current value to an 8-bit signed integer based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToSingle Infrastructure. Converts the current value to a single-precision floating point number based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToType Infrastructure. Converts the current value to a specified type based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToUInt16 Infrastructure. Converts the current value to a 16-bit unsigned integer based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToUInt32 Infrastructure. Converts the current value to a 32-bit unsigned integer based on the underlying type.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToUInt64 Infrastructure. Converts the current value to a 64-bit unsigned integer based on the underlying type.

Top

See Also

Reference