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.
ModuleBuilder::IsDefined Method (Type^, Boolean)
.NET Framework (current version)
Returns a value that indicates whether the specified attribute type has been applied to this module.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- attributeType
-
Type:
System::Type^
The type of custom attribute to test for.
- inherit
-
Type:
System::Boolean
This argument is ignored for objects of this type.
Return Value
Type: System::Booleantrue if one or more instances of attributeType have been applied to this module; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | attributeType is null. |
| ArgumentException | attributeType is not a Type object supplied by the runtime. For example, attributeType is a TypeBuilder object. |
.NET Framework
Available since 4.0
Silverlight
Available since 4.0
Available since 4.0
Silverlight
Available since 4.0
Show: