ParameterInfo.GetOptionalCustomModifiers 方法

定義

取得參數的可選自訂修飾符。

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 物件陣列,用以識別當前參數的可選自訂修飾符,例如 IsConstIsImplicitlyDereferenced或 。

備註

GetOptionalCustomModifiers GetRequiredCustomModifiers這些方法供受管理編譯器的設計者使用。 欲了解更多自訂修飾符的資訊,請參閱 IsBoxed 命名空間中的相關類別 System.Runtime.CompilerServices ,以及 ECMA Partition II 文件中的元資料規範。 欲了解更多資訊,請參閱 ECMA 335 通用語言基礎架構(CLI)。

適用於