The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ConstructorBuilder::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^
A custom attribute type.
- inherit
-
Type:
System::Boolean
Controls inheritance of custom attributes from base classes. This parameter is ignored.
Return Value
Type: System::Booleantrue if the specified custom attribute type is defined; otherwise, false.
| Exception | Condition |
|---|---|
| NotSupportedException | This method is not currently supported. You can retrieve the constructor using GetConstructor and call IsDefined on the returned ConstructorInfo. |
See the metadata specification for details on how to format binaryAttribute.
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Available since 1.1
Silverlight
Available since 2.0
Show: