Compartir a través de


EnumBuilder.CreateType Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Creates a Type object for this enum.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Function CreateType As Type
public Type CreateType()

Return Value

Type: System.Type
A Type object for this enum.

Exceptions

Exception Condition
InvalidOperationException

This type has been previously created.

-or-

The enclosing type has not been created.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.