NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ConstructorBuilder.DefineParameter

Defines a parameter of this constructor.

[Visual Basic]
Public Function DefineParameter( _
   ByVal iSequence As Integer, _
   ByVal attributes As ParameterAttributes, _
   ByVal strParamName As String _
) As ParameterBuilder
[C#]
public ParameterBuilder DefineParameter(
   int iSequence,
   ParameterAttributes attributes,
   string strParamName
);
[C++]
public: ParameterBuilder* DefineParameter(
   int iSequence,
   ParameterAttributes attributes,
   String* strParamName
);
[JScript]
public function DefineParameter(
   iSequence : int,
   attributes : ParameterAttributes,
   strParamName : String
) : ParameterBuilder;

Parameters

iSequence
The zero-indexed position of the parameter in the parameter list.
attributes
The attributes of the parameter.
strParamName
The name of the parameter. The name can be the null string.

Return Value

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

Exceptions

Exception Type Condition
InvalidOperationException If the containing type has been created using CreateType.

See Also

ConstructorBuilder Class | ConstructorBuilder Members | System.Reflection.Emit Namespace