JSConstructor.IsDefined(Type, Boolean) 方法

定義

決定是否附加於該建構子的指定屬性類型。

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

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

參數

type
Type

要搜尋的屬性類型。

inherit
Boolean

true 搜尋此成員的繼承階層以找到屬性。

傳回

false 無論哪種情況。

適用於

另請參閱