Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 4
System
Enum Class
Enum Methods
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
.NET Framework Class Library
Enum Methods

The Enum type exposes the following members.

  NameDescription
Public methodCompareToCompares this instance to a specified object and returns an indication of their relative values.
Public methodEqualsReturns a value indicating whether this instance is equal to a specified object. (Overrides ValueType..::.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberFormatConverts the specified value of a specified enumerated type to its equivalent string representation according to the specified format.
Public methodGetHashCodeReturns the hash code for the value of this instance. (Overrides ValueType..::.GetHashCode()()().)
Public methodStatic memberGetNameRetrieves the name of the constant in the specified enumeration that has the specified value.
Public methodStatic memberGetNamesRetrieves an array of the names of the constants in a specified enumeration.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetTypeCodeReturns the underlying TypeCode for this instance.
Public methodStatic memberGetUnderlyingTypeReturns the underlying type of the specified enumeration.
Public methodStatic memberGetValuesRetrieves an array of the values of the constants in a specified enumeration.
Public methodHasFlagDetermines whether one or more bit fields are set in the current instance.
Public methodStatic memberIsDefinedIndicates whether a constant with a specified value exists in a specified enumeration.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberParse(Type, String)Converts the string representation of the name or numeric value of one or more enumerated constants to an equivalent enumerated object.
Public methodStatic memberParse(Type, String, Boolean)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 memberToObject(Type, Byte)Converts the specified 8-bit unsigned integer to an enumeration member.
Public methodStatic memberToObject(Type, Int16)Converts the specified 16-bit signed integer to an enumeration member.
Public methodStatic memberToObject(Type, Int32)Converts the specified 32-bit signed integer to an enumeration member.
Public methodStatic memberToObject(Type, Int64)Converts the specified 64-bit signed integer to an enumeration member.
Public methodStatic memberToObject(Type, Object)Converts the specified object with an integer value to an enumeration member.
Public methodStatic memberToObject(Type, SByte)Converts the specified 8-bit signed integer value to an enumeration member.
Public methodStatic memberToObject(Type, UInt16)Converts the specified 16-bit unsigned integer value to an enumeration member.
Public methodStatic memberToObject(Type, UInt32)Converts the specified 32-bit unsigned integer value to an enumeration member.
Public methodStatic memberToObject(Type, UInt64)Converts the specified 64-bit unsigned integer value to an enumeration member.
Public methodToString()()()Converts the value of this instance to its equivalent string representation. (Overrides ValueType..::.ToString()()().)
Public methodToString(IFormatProvider) Obsolete. This method overload is obsolete; use Enum..::.ToString()()().
Public methodToString(String)Converts the value of this instance to its equivalent string representation using the specified format.
Public methodToString(String, IFormatProvider) Obsolete. This method overload is obsolete; use Enum..::.ToString(String).
Public methodStatic memberTryParse<(Of <(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 memberTryParse<(Of <(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
  NameDescription
Explicit interface implemetationPrivate methodIConvertible..::.ToBooleanInfrastructure. Converts the current value to a Boolean value based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToByteInfrastructure. Converts the current value to an 8-bit unsigned integer based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToCharInfrastructure. Converts the current value to a Unicode character based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToDateTimeInfrastructure. Converts the current value to a DateTime based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToDecimalInfrastructure. Converts the current value to a Decimal based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToDoubleInfrastructure. Converts the current value to a double-precision floating point number based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToInt16Infrastructure. Converts the current value to a 16-bit signed integer based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToInt32Infrastructure. Converts the current value to a 32-bit signed integer based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToInt64Infrastructure. Converts the current value to a 64-bit signed integer based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToSByteInfrastructure. Converts the current value to an 8-bit signed integer based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToSingleInfrastructure. Converts the current value to a single-precision floating-point number based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToTypeInfrastructure. Converts the current value to a specified type based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToUInt16Infrastructure. Converts the current value to a 16-bit unsigned integer based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToUInt32Infrastructure. Converts the current value to a 32-bit unsigned integer based on the underlying type.
Explicit interface implemetationPrivate methodIConvertible..::.ToUInt64Infrastructure. Converts the current value to a 64-bit unsigned integer based on the underlying type.
Explicit interface implemetationPrivate methodIFormattable..::.ToStringInfrastructure. This method overload is obsolete; use Enum..::.ToString(String).
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker