AssemblyBuilder.IsDefined(Type, Boolean) 方法

定義

傳回值,這個值表示指定屬性類型的一或多個執行個體是否套用至這個成員。

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

參數

attributeType
Type

要測試的屬性類型。

inherit
Boolean

這個類型的物件會忽略這個引數。

傳回

Boolean

如果 attributeType 的一或多個執行個體套用至這個動態組件,則為 true;否則為 false

適用於