ParameterInfo.GetOptionalCustomModifiers 方法

定義

取得參數的選擇性自訂修飾詞。Gets the optional custom modifiers of the parameter.

public:
 virtual cli::array <Type ^> ^ GetOptionalCustomModifiers();
public virtual Type[] GetOptionalCustomModifiers ();
abstract member GetOptionalCustomModifiers : unit -> Type[]
override this.GetOptionalCustomModifiers : unit -> Type[]
Public Overridable Function GetOptionalCustomModifiers () As Type()

傳回

Type[]

Type 物件的陣列,識別目前參數的選擇性自訂修飾詞,例如 IsConstIsImplicitlyDereferencedAn array of Type objects that identify the optional custom modifiers of the current parameter, such as IsConst or IsImplicitlyDereferenced.

備註

GetOptionalCustomModifiersGetRequiredCustomModifiers 方法是針對 managed 編譯器的設計工具而提供。The GetOptionalCustomModifiers and GetRequiredCustomModifiers methods are provided for designers of managed compilers. 如需自訂修飾詞的詳細資訊,請參閱 IsBoxed 命名空間中的和相關類別 System.Runtime.CompilerServices ,以及 ECMA Partition II 檔中的中繼資料規格。For more information on custom modifiers, see IsBoxed and related classes in the System.Runtime.CompilerServices namespace, and the metadata specification in the ECMA Partition II documentation. 您可以線上取得這份文件;請參閱 MSDN 上的 ECMA C# 和通用語言基礎結構標準,以及 Ecma International 網站上的標準 ECMA-335 - 通用語言基礎結構 (CLI)The documentation is available online; see ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

適用於