Module.ICustomAttributeProvider.IsDefined(Type, Boolean) 方法

定义

指示是否在此成员上定义一个或多个实例 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

返回

如果对此成员定义,则 否则。

实现

适用于