This documentation is archived and is not being maintained.

DynamicDataExtensions.GetEnumType Method

Gets the type of the enumeration that represents the column.

Namespace:  System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

public static Type GetEnumType(
	this MetaColumn column


Type: System.Web.DynamicData.MetaColumn
The column to get the enumeration type for.

Return Value

Type: System.Type
The type of the enumeration that represents the column if the underlying type is an enumeration; otherwise, null.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MetaColumn. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

The column represents an enumeration if the underlying type is an enumeration or if the column is annotated in the entity partial class with the EnumDataTypeAttribute attribute.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.