TypeDelegator.IsDefined(Type, Boolean) 方法

定义

指示是否定义了由 attributeType 其标识的自定义属性。

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

按类型标识的自定义属性数组。

返回

如果定义了由 其标识的自定义属性,则为

例外

attributeTypenull

无法加载自定义属性类型。

适用于