TypeDelegator.IsDefined(Type, Boolean) Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether a custom attribute identified by attributeType is defined.
public:
 override bool IsDefined(Type ^ attributeType, bool inherit);public override bool IsDefined(Type attributeType, bool inherit);override this.IsDefined : Type * bool -> boolPublic Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As BooleanParameters
- attributeType
- Type
Specifies whether to search this type's inheritance chain to find the attributes.
- inherit
- Boolean
An array of custom attributes identified by type.
Returns
true if a custom attribute identified by attributeType is defined; otherwise, false.
Exceptions
attributeType is null.
The custom attribute type cannot be loaded.