Name

EnumBuilder

Synopsis

This class represents a dynamically created enumeration. Enumerations are created at module scope using the ModuleBuilder.DefineEnum() method. Before using a dynamically created enumeration, you must use the CreateType() method to complete it.

Public NotInheritable Class EnumBuilder : Inherits Type
' Public Instance Properties
   Overrides Public ReadOnly Property Assembly As Assembly  
   Overrides Public ReadOnly Property AssemblyQualifiedName As String  
   Overrides Public ReadOnly Property BaseType As Type  
   Overrides Public ReadOnly Property DeclaringType As Type  
   Overrides Public ReadOnly Property FullName As String  
   Overrides Public ReadOnly Property GUID As Guid  
   Overrides Public ReadOnly Property Module As Module  
   Overrides Public ReadOnly Property Name As String  
   Overrides Public ReadOnly Property Namespace As String  
   Overrides Public ReadOnly Property ReflectedType As Type  
   Overrides Public ReadOnly Property TypeHandle As RuntimeTypeHandle  
   Public ReadOnly Property TypeToken As TypeToken  
   Public ReadOnly Property UnderlyingField As FieldBuilder  
   Overrides Public ReadOnly Property UnderlyingSystemType As Type  
' Public Instance Methods
   Public Function CreateType() As Type  
   Public Function DefineLiteral(ByVal literalName As String, 
        ByVal literalValue As Object) As FieldBuilder  
   Overrides Public Function GetConstructors(
        ByVal bindingAttr As System.Reflection.BindingFlags) As ConstructorInfo()  
   Overrides Public Function GetCustomAttributes( ByVal inherit As Boolean) As Object() ...

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.