SignatureHelper.AddArguments(Type[], Type[][], Type[][]) 方法

定義

使用指定的自訂修飾詞,將引數集合加入簽章。

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

參數

arguments
Type[]

要加入的引數型別。

requiredCustomModifiers
Type[][]

類型陣列的陣列。 每一個型別陣列都表示對應引數的必要自訂修飾詞,例如 IsConstIsBoxed。 如果特定引數沒有必要的自訂修飾詞,請指定 null,而不要指定型別的陣列。 如果沒有任何引數具有必要的自訂修飾詞,請指定 null,而不要指定陣列的陣列。

optionalCustomModifiers
Type[][]

類型陣列的陣列。 每一個型別陣列都表示對應引數的選擇性自訂修飾詞,例如 IsConstIsBoxed。 如果特定引數沒有選擇性的自訂修飾詞,請指定 null,而不要指定型別的陣列。 如果沒有任何引數具有選擇性自訂修飾詞,請指定 null,而不要指定陣列的陣列。

例外狀況

arguments 的項目是 null

-或-

其中一個指定的自訂修飾詞為 null (不過,您可以為任何引數的自訂修飾詞陣列指定 null)。

簽章已經完成。

-或-

其中一個指定的自訂修飾詞為陣列型別。

-或-

其中一個指定的自訂修飾詞為開放泛型型別。 也就是說,自訂修飾詞的 ContainsGenericParameters 屬性為 true

-或-

requiredCustomModifiersoptionalCustomModifiers 的大小不等於 arguments 的大小。

備註

引數會依 的元素 arguments 順序加入簽章結尾。

System.Runtime.CompilerServices請參閱代表自訂修飾詞之類別的命名空間。

適用於