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!

MethodBuilder.DefineParameter

Defines a parameter of this method.

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

Parameters

position
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 parrameter of this method.

Exceptions

Exception Type Condition
InvalidOperationException if the containing type was previously created using CreateType

See Also

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