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;
Returns a ParameterBuilder object that represents the new parrameter of this method.
Exception Type | Condition |
---|---|
InvalidOperationException | if the containing type was previously created using CreateType |
MethodBuilder Class | MethodBuilder Members | System.Reflection.Emit Namespace