ReflectedAsyncControllerDescriptor.IsDefined Method

Returns a value that indicates whether one or more instances of the specified custom attribute are defined for this member.

Namespace:  System.Web.Mvc.Async
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)


Public Overrides Function IsDefined ( _
    attributeType As Type, _
    inherit As Boolean _
) As Boolean
public override bool IsDefined(
    Type attributeType,
    bool inherit
virtual bool IsDefined(
    Type^ attributeType, 
    bool inherit
) override


  • 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.

Return Value

Type: System.Boolean
true if an attribute of the type represented by attributeType is defined for this member; otherwise, false.


ICustomAttributeProvider.IsDefined(Type, Boolean)

See Also


ReflectedAsyncControllerDescriptor Class

System.Web.Mvc.Async Namespace