Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsDefined Method

ActionDescriptor.IsDefined Method (Type, Boolean)

 

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 Overridable Function IsDefined (
	attributeType As Type,
	inherit As Boolean
) As Boolean

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 attributeType is defined for this member; otherwise, false.

Exception Condition
ArgumentNullException

The attritubeType parameter is null.

Return to top
Show:
© 2015 Microsoft