SignatureHelper.AddArgument Metoda

Definicja

Dodaje argument do podpisu.

Przeciążenia

AddArgument(Type)

Dodaje argument do podpisu.

AddArgument(Type, Boolean)

Dodaje argument określonego typu do podpisu, określając, czy argument jest przypięty.

AddArgument(Type, Type[], Type[])

Dodaje argument do podpisu z określonymi modyfikatorami niestandardowymi.

AddArgument(Type)

Źródło:
SignatureHelper.cs
Źródło:
SignatureHelper.cs
Źródło:
SignatureHelper.cs

Dodaje argument do podpisu.

public:
 void AddArgument(Type ^ clsArgument);
public void AddArgument (Type clsArgument);
member this.AddArgument : Type -> unit
Public Sub AddArgument (clsArgument As Type)

Parametry

clsArgument
Type

Typ argumentu.

Wyjątki

Podpis został już zakończony.

clsArgument to null.

Uwagi

Aby dodać argument z opcjonalnymi lub wymaganymi modyfikatorami niestandardowymi, użyj AddArgument(Type, Type[], Type[]) przeciążenia metody.

Dotyczy

AddArgument(Type, Boolean)

Źródło:
SignatureHelper.cs
Źródło:
SignatureHelper.cs
Źródło:
SignatureHelper.cs

Dodaje argument określonego typu do podpisu, określając, czy argument jest przypięty.

public:
 void AddArgument(Type ^ argument, bool pinned);
public void AddArgument (Type argument, bool pinned);
member this.AddArgument : Type * bool -> unit
Public Sub AddArgument (argument As Type, pinned As Boolean)

Parametry

argument
Type

Typ argumentu.

pinned
Boolean

true jeśli argument jest przypięty; w przeciwnym razie , false.

Wyjątki

argument to null.

Uwagi

Aby dodać argument z opcjonalnymi lub wymaganymi modyfikatorami niestandardowymi, użyj AddArgument(Type, Type[], Type[]) przeciążenia metody.

Dotyczy

AddArgument(Type, Type[], Type[])

Źródło:
SignatureHelper.cs
Źródło:
SignatureHelper.cs
Źródło:
SignatureHelper.cs

Dodaje argument do podpisu z określonymi modyfikatorami niestandardowymi.

public:
 void AddArgument(Type ^ argument, cli::array <Type ^> ^ requiredCustomModifiers, cli::array <Type ^> ^ optionalCustomModifiers);
public void AddArgument (Type argument, Type[]? requiredCustomModifiers, Type[]? optionalCustomModifiers);
public void AddArgument (Type argument, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers);
member this.AddArgument : Type * Type[] * Type[] -> unit
Public Sub AddArgument (argument As Type, requiredCustomModifiers As Type(), optionalCustomModifiers As Type())

Parametry

argument
Type

Typ argumentu.

requiredCustomModifiers
Type[]

Tablica typów reprezentujących wymagane modyfikatory niestandardowe dla argumentu, takie jak IsConst lub IsBoxed. Jeśli argument nie ma wymaganych modyfikatorów niestandardowych, określ wartość null.

optionalCustomModifiers
Type[]

Tablica typów reprezentujących opcjonalne modyfikatory niestandardowe argumentu, takie jak IsConst lub IsBoxed. Jeśli argument nie ma opcjonalnych modyfikatorów niestandardowych, określ wartość null.

Wyjątki

argument to null.

-lub-

Element elementu requiredCustomModifiers lub optionalCustomModifiers ma wartość null.

Podpis został już zakończony.

-lub-

Jednym z określonych modyfikatorów niestandardowych jest typ tablicy.

-lub-

Jednym z określonych modyfikatorów niestandardowych jest otwarty typ ogólny. Oznacza to, ContainsGenericParameters że właściwość jest true dla modyfikatora niestandardowego.

Uwagi

System.Runtime.CompilerServices Zobacz przestrzeń nazw dla klas reprezentujących modyfikatory niestandardowe.

Dotyczy