System.Reflection.Emit.ConstructorBuilder.DefineParameter Method

Defines a parameter of this constructor.

Syntax

public ParameterBuilder DefineParameter (int iSequence, System.Reflection.ParameterAttributes attributes, string strParamName)

Parameters

iSequence
The position of the parameter in the parameter list. Parameters are indexed beginning with the number 1 for the first parameter.
attributes
The attributes of the parameter.
strParamName
The name of the parameter. The name can be the null string.

Returns

Returns a ParameterBuilder object that represents the new parameter of this constructor.

Remarks

If you specify 0 (zero) for iSequence, this method returns a System.Reflection.Emit.ParameterBuilder instead of throwing an exception. There is nothing useful that you can do with this System.Reflection.Emit.ParameterBuilder.

Requirements

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