Name
FieldBuilder
Synopsis
This class represents a dynamically created field. Fields are created with the TypeBuilder.DefineField()
method,
which allows you to specify the field’s characteristics using the System.Reflection.FieldAttributes
enumeration. The TypeBuilder.DefineField()
method also
determines the name and type of the field. Fields must be a simple data type
such as a string or integer. Use SetConstant()
to set the
default value of the field.
Public NotInheritable Class FieldBuilder : Inherits System.Reflection.FieldInfo ' Public Instance Properties Overrides Public ReadOnly Property Attributes As FieldAttributes Overrides Public ReadOnly Property DeclaringType As Type Overrides Public ReadOnly Property FieldHandle As RuntimeFieldHandle Overrides Public ReadOnly Property FieldType As Type Overrides Public ReadOnly Property Name As String Overrides Public ReadOnly Property ReflectedType As Type ' Public Instance Methods Overrides Public Function GetCustomAttributes( ByVal inherit As Boolean) As Object() Overrides Public Function GetCustomAttributes( ByVal attributeType As Type, ByVal inherit As Boolean) As Object() Public Function GetToken() As FieldToken Overrides Public Function GetValue( ByVal obj As Object) As Object Overrides Public Function IsDefined( ByVal attributeType As Type, ByVal inherit As Boolean) As Boolean Public Sub SetConstant( ByVal defaultValue As Object) Public Sub SetCustomAttribute( ByVal con As System.Reflection.ConstructorInfo, ByVal binaryAttribute ...
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.