AssemblyBuilder.IsDefined(Type, Boolean) 方法
定义
返回一个值,该值指示是否将指定特性类型的一个或多个实例应用于此成员。Returns a value that indicates whether one or more instances of the specified attribute type is applied to this member.
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
要测试的特性类型。The type of attribute to test for.
- inherit
- Boolean
对于该类型的对象,将忽略此自变量。This argument is ignored for objects of this type.
返回
如果一个或多个 attributeType 的实例应用于此动态程序集,则为 true;否则为 false。true if one or more instances of attributeType is applied to this dynamic assembly; otherwise, false.