Type.GetRequiredCustomModifiers 方法

定義

在衍生類別中覆寫時,傳回目前 Type 的必要自訂修飾詞。

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

傳回

Type[]

物件的陣列 Type ,識別目前 Type 的必要自訂修飾詞。

-或-

如果目前的 Type 沒有自訂修飾詞,則為 型 Type 別的空陣列。

-或-

如果目前的 Type 不是修改 Type 的 ,則為 型 Type 別的空陣列。 已 Type 修改的 是從 GetModifiedFieldType()GetModifiedPropertyType()GetModifiedParameterType() 取得。

備註

GetRequiredCustomModifiersGetRequiredCustomModifiers 方法會提供給 Managed 編譯器的設計工具。 如需自訂修飾詞的詳細資訊,請參閱 命名空間中的 System.Runtime.CompilerServices 類別。 另請參閱 Common Language Infrastructure (CLI) 檔中的分割區 II 中的中繼資料規格。

適用於