JSMethodInfo.IsDefined(Type, Boolean) 方法

定義

判斷指定的屬性型別是否已附加至這個方法。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 override bool IsDefined(Type ^ type, bool inherit);
public override sealed bool IsDefined (Type type, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides NotOverridable Function IsDefined (type As Type, inherit As Boolean) As Boolean

參數

type
Type

要搜尋的屬性型別。

inherit
Boolean

true 表示搜尋這個成員的繼承階層架構以尋找屬性。

傳回

如果指定之屬性 type 的一個或多個執行個體已附加至這個方法,則為 true,否則為 false

適用於

另請參閱