System.Reflection.Emit.TypeBuilder.DefineProperty Method

Adds a new property to the type, with the given name and property signature.

Syntax

public PropertyBuilder DefineProperty (string name, System.Reflection.PropertyAttributes attributes, Type returnType, Type[] parameterTypes)

Parameters

name
The name of the property. name cannot contain embedded nulls.
attributes
The attributes of the property.
returnType
The return type of the property.
parameterTypes
The types of the parameters of the property.

Returns

The defined property.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0