Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetEnumType Method

DynamicDataExtensions.GetEnumType Method

.NET Framework 4.6 and 4.5

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
)

Parameters

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.6, 4.5, 4
Show:
© 2015 Microsoft