Export (0) Print
Expand All

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.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

© 2014 Microsoft