SignatureHelper.AddArgument Método

Definição

Adiciona um argumento à assinatura.Adds an argument to the signature.

Sobrecargas

AddArgument(Type)

Adiciona um argumento à assinatura.Adds an argument to the signature.

AddArgument(Type, Boolean)

Adiciona um argumento do tipo especificado à assinatura, especificando se o argumento está fixado.Adds an argument of the specified type to the signature, specifying whether the argument is pinned.

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

Adiciona um argumento à assinatura, com modificadores personalizados especificados.Adds an argument to the signature, with the specified custom modifiers.

AddArgument(Type)

Adiciona um argumento à assinatura.Adds an argument to the signature.

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

Parâmetros

clsArgument
Type

O tipo do argumento.The type of the argument.

Exceções

A assinatura já foi encerrada.The signature has already been finished.

clsArgument é null.clsArgument is null.

Comentários

Para adicionar um argumento com modificadores personalizados opcionais ou obrigatórios, use a AddArgument(Type, Type[], Type[]) sobrecarga do método.To add an argument with optional or required custom modifiers, use the AddArgument(Type, Type[], Type[]) method overload.

Aplica-se a

AddArgument(Type, Boolean)

Adiciona um argumento do tipo especificado à assinatura, especificando se o argumento está fixado.Adds an argument of the specified type to the signature, specifying whether the argument is pinned.

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)

Parâmetros

argument
Type

O tipo de argumento.The argument type.

pinned
Boolean

true se o argumento estiver fixado; caso contrário, false.true if the argument is pinned; otherwise, false.

Exceções

argument é null.argument is null.

Comentários

Para adicionar um argumento com modificadores personalizados opcionais ou obrigatórios, use a AddArgument(Type, Type[], Type[]) sobrecarga do método.To add an argument with optional or required custom modifiers, use the AddArgument(Type, Type[], Type[]) method overload.

Aplica-se a

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

Adiciona um argumento à assinatura, com modificadores personalizados especificados.Adds an argument to the signature, with the specified custom modifiers.

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())

Parâmetros

argument
Type

O tipo de argumento.The argument type.

requiredCustomModifiers
Type[]

Uma matriz de tipos que representa os modificadores personalizados obrigatórios para o argumento, como IsConst ou IsBoxed.An array of types representing the required custom modifiers for the argument, such as IsConst or IsBoxed. Se o argumento não tiver modificadores personalizados obrigatórios, especifique null.If the argument has no required custom modifiers, specify null.

optionalCustomModifiers
Type[]

Uma matriz de tipos que representa os modificadores personalizados opcionais para o argumento, como IsConst ou IsBoxed.An array of types representing the optional custom modifiers for the argument, such as IsConst or IsBoxed. Se o argumento não tiver nenhum modificador personalizado opcional, especifique null.If the argument has no optional custom modifiers, specify null.

Exceções

argument é null.argument is null.

- ou --or- Um elemento de requiredCustomModifiers ou optionalCustomModifiers é null.An element of requiredCustomModifiers or optionalCustomModifiers is null.

A assinatura já foi encerrada.The signature has already been finished.

- ou --or- Um dos modificadores personalizados especificados é um tipo de matriz.One of the specified custom modifiers is an array type.

- ou --or- Um dos modificadores personalizados especificados é um tipo genérico aberto.One of the specified custom modifiers is an open generic type. Ou seja, a propriedade ContainsGenericParameters é true para o modificador personalizado.That is, the ContainsGenericParameters property is true for the custom modifier.

Comentários

Consulte o System.Runtime.CompilerServices namespace para classes que representam modificadores personalizados.See the System.Runtime.CompilerServices namespace for classes that represent custom modifiers.

Aplica-se a