ActionDescriptor.IsDefined Method
Determines whether one or more instances of the specified attribute type are defined for this member.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- attributeType
- Type: System.Type
The type of the custom attribute.
- inherit
- Type: System.Boolean
true to look up the hierarchy chain for the inherited custom attribute; otherwise, false.
Implements
ICustomAttributeProvider.IsDefined(Type, Boolean)| Exception | Condition |
|---|---|
| ArgumentNullException | The attritubeType parameter is null. |
Show: