TypeDelegator.GetCustomAttributes Method (Boolean)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns all the custom attributes defined for this type, specifying whether to search the type's inheritance chain.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- inherit
- Type: System.Boolean
Specifies whether to search this type's inheritance chain to find the attributes.
Return Value
Type: System.Object []An array of objects containing all the custom attributes defined for this type.
Implements
ICustomAttributeProvider.GetCustomAttributes(Boolean)| Exception | Condition |
|---|---|
| TypeLoadException | A custom attribute type cannot be loaded. |
Show: