Export (0) Print
Expand All

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)

static member GetEnumType : 
        column:MetaColumn -> Type

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, a null reference (Nothing in Visual Basic).

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