Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Indicates whether one or more instances of a custom attribute type are defined for this member.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Overridable Function IsDefined ( _
attributeType As Type, _
inherit As Boolean _
) As Boolean
public virtual bool IsDefined(
Type attributeType,
bool inherit
)
public:
virtual bool IsDefined(
Type^ attributeType,
bool inherit
)
Parameters
- attributeType
Type: System.Type
The type of the custom attributes.
- 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 custom attribute type is defined for this member; otherwise, false.
Implements
ICustomAttributeProvider.IsDefined(Type, Boolean)
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The attributeType parameter is null reference (Nothing in Visual Basic). |