Name
PropertyBuilder
Synopsis
This class represents a dynamically created property. To create a PropertyBuilder
object, use the TypeBuilder.DefineProperty()
method
and specify the parameter types, return value type, and any additional special
settings through the System.Reflection.PropertyAttributes
enumeration. You can specify MethodBuilder
objects for the property get
and property set methods
using SetGetMethod()
and SetSetMethod()
. You
can also set the property’s default value using the SetConstant()
method.
Public NotInheritable Class PropertyBuilder : Inherits System.Reflection.PropertyInfo ' Public Instance Properties Overrides Public ReadOnly Property Attributes As PropertyAttributes Overrides Public ReadOnly Property CanRead As Boolean Overrides Public ReadOnly Property CanWrite As Boolean Overrides Public ReadOnly Property DeclaringType As Type Overrides Public ReadOnly Property Name As String Public ReadOnly Property PropertyToken As PropertyToken Overrides Public ReadOnly Property PropertyType As Type Overrides Public ReadOnly Property ReflectedType As Type ' Public Instance Methods Public Sub AddOtherMethod(ByVal mdBuilder As MethodBuilder) Overrides Public Function GetAccessors( ByVal nonPublic As Boolean) As MethodInfo() Overrides Public Function GetCustomAttributes( ByVal inherit As Boolean) As Object() Overrides Public Function GetCustomAttributes( ByVal attributeType As Type, ByVal inherit As Boolean) As Object() Overrides Public Function GetGetMethod( ByVal nonPublic ...
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.