System.Reflection.Emit.PropertyBuilder Members

The members of System.Reflection.Emit.PropertyBuilder are listed below.

See Also: Inherited members from System.Reflection.PropertyInfo

Public Properties

[read-only]
override
AttributesSystem.Reflection.PropertyAttributes.

Gets the attributes for this property.

[read-only]
override
CanReadbool.

Gets a value indicating whether the property can be read.

[read-only]
override
CanWritebool.

Gets a value indicating whether the property can be written to.

[read-only]
override
DeclaringTypeType.

Gets the class that declares this member.

[read-only]
override
ModuleSystem.Reflection.Module.

Gets the module in which the type that declares the current property is being defined.

[read-only]
override
Namestring.

Gets the name of this member.

[read-only]
PropertyTokenPropertyToken.

Retrieves the token for this property.

[read-only]
override
PropertyTypeType.

Gets the type of the field of this property.

[read-only]
override
ReflectedTypeType.

Gets the class object that was used to obtain this instance of MemberInfo.

Public Methods

AddOtherMethod(MethodBuilder)

Adds one of the other methods associated with this property.

override
GetAccessors(bool) : System.Reflection.MethodInfo[]

Returns an array of the public and non-public get and set accessors on this property.

override
GetCustomAttributes(bool) : object[]

Returns an array of all the custom attributes for this property.

override
GetCustomAttributes(Type, bool) : object[]

Returns an array of custom attributes identified by Type.

override
GetGetMethod(bool) : System.Reflection.MethodInfo

Returns the public and non-public get accessor for this property.

override
GetIndexParameters() : System.Reflection.ParameterInfo[]

Returns an array of all the index parameters for the property.

override
GetSetMethod(bool) : System.Reflection.MethodInfo

Returns the set accessor for this property.

override
GetValue(object, object[]) : object

Gets the value of the indexed property by calling the property's getter method.

override
GetValue(object, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo) : object

Gets the value of a property having the specified binding, index, and CultureInfo.

override
IsDefined(Type, bool) : bool

Indicates whether one or more instance of attributeType is defined on this property.

SetConstant(object)

Sets the default value of this property.

SetCustomAttribute(CustomAttributeBuilder)

Set a custom attribute using a custom attribute builder.

SetCustomAttribute(System.Reflection.ConstructorInfo, byte[])

Set a custom attribute using a specified custom attribute blob.

SetGetMethod(MethodBuilder)

Sets the method that gets the property value.

SetSetMethod(MethodBuilder)

Sets the method that sets the property value.

override
SetValue(object, object, object[])

Sets the value of the property with optional index values for index properties.

override
SetValue(object, object, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo)

Sets the property value for the given object to the given value.

Explicitly Implemented Interface Members

System.Runtime.InteropServices._PropertyBuilder.GetIDsOfNamesDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._PropertyBuilder.GetTypeInfo

Retrieves the type information for an object, which can then be used to get the type information for an interface.

System.Runtime.InteropServices._PropertyBuilder.GetTypeInfoCountDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._PropertyBuilder.InvokeDocumentation for this section has not yet been entered.