Redigeeri

Jagamisviis:


MethodBuilder.DefineParameterCore(Int32, ParameterAttributes, String) Method

Definition

When overridden in a derived class, defines a parameter or return parameter for this method.

protected:
 abstract System::Reflection::Emit::ParameterBuilder ^ DefineParameterCore(int position, System::Reflection::ParameterAttributes attributes, System::String ^ strParamName);
protected abstract System.Reflection.Emit.ParameterBuilder DefineParameterCore (int position, System.Reflection.ParameterAttributes attributes, string? strParamName);
abstract member DefineParameterCore : int * System.Reflection.ParameterAttributes * string -> System.Reflection.Emit.ParameterBuilder
Protected MustOverride Function DefineParameterCore (position As Integer, attributes As ParameterAttributes, strParamName As String) As ParameterBuilder

Parameters

position
Int32

The position of the parameter in the parameter list. Parameters are indexed beginning with the number 1 for the first parameter; the number 0 represents the return parameter of the method.

attributes
ParameterAttributes

The ParameterAttributes of the parameter.

strParamName
String

The name of the parameter. The name can be the null string.

Returns

Returns a ParameterBuilder object that represents a parameter of this method or the return parameter of this method.

Remarks

The returned ParameterBuilder can be used to apply custom attributes.

Applies to