Module.ICustomAttributeProvider.IsDefined(Type, Boolean) 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示是否在该成员上定义了一个或多个 attributeType 实例。
 virtual bool System.Reflection.ICustomAttributeProvider.IsDefined(Type ^ attributeType, bool inherit) = System::Reflection::ICustomAttributeProvider::IsDefined;
	bool ICustomAttributeProvider.IsDefined(Type attributeType, bool inherit);
	abstract member System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
override this.System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
	Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean Implements ICustomAttributeProvider.IsDefined
	参数
- attributeType
 - Type
 
自定义属性的类型。
- inherit
 - Boolean
 
为 true 时,查找继承的自定义特性的层次结构链。
返回
如果在该成员上定义 attributeType,则为 true;否则为 false。