TypeDelegator.IsDefined(Type, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示是否定义了由 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
按类型标识的自定义属性数组。
返回
例外
attributeType 是 null。
无法加载自定义属性类型。