Determines whether a custom attribute is applied to the current type.
Assembly: mscorlib (in mscorlib.dll)
[SecuritySafeCriticalAttribute] public override bool IsDefined( Type attributeType, bool inherit )
- Type: System.Type
The type of attribute to search for. Only attributes that are assignable to this type are returned.
- Type: System.Boolean
true to search this member's inheritance chain to find the attributes; otherwise, false.
Return ValueType: System.Boolean
true if one or more instances of attributeType, or an attribute derived from attributeType, is defined on this type; otherwise, false.
This method is not supported for incomplete types. Get the completed type by calling CreateType, and use reflection on the completed type.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.