Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ActionDescriptor.IsDefined Method

.NET Framework 4

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)
public virtual bool IsDefined(
	Type attributeType,
	bool inherit
)

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.

Return Value

Type: System.Boolean
true if the attributeType is defined for this member; otherwise, false.

Implements

ICustomAttributeProvider.IsDefined(Type, Boolean)
ExceptionCondition
ArgumentNullException

The attritubeType parameter is null.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.