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.
FieldBuilder::IsDefined Method (Type^, Boolean)
.NET Framework (current version)
Indicates whether an attribute having the specified type is defined on a field.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- attributeType
-
Type:
System::Type^
The type of the attribute.
- inherit
-
Type:
System::Boolean
Controls inheritance of custom attributes from base classes.
Return Value
Type: System::Booleantrue if one or more instance of attributeType is defined on this field; otherwise, false.
| Exception | Condition |
|---|---|
| NotSupportedException |
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Available since 1.1
Silverlight
Available since 2.0
Show: