JSField.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

適用於

另請參閱