MethodBuilder::IsDefined Method (Type^, Boolean)
.NET Framework (current version)
Checks if the specified custom attribute type is defined.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- attributeType
-
Type:
System::Type^
The custom attribute type.
- inherit
-
Type:
System::Boolean
Specifies whether to search this member's inheritance chain to find the custom attributes.
Return Value
Type: System::Booleantrue if the specified custom attribute type is defined; otherwise, false.
| Exception | Condition |
|---|---|
| NotSupportedException | This method is not currently supported. Retrieve the method using GetMethod and call IsDefined on the returned MethodInfo. |
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Available since 1.1
Silverlight
Available since 2.0
Show: