ParameterInfo.ICustomAttributeProvider.IsDefined(Type, Boolean) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether one or more instance of attributeType
is defined on this member.
virtual bool System.Reflection.ICustomAttributeProvider.IsDefined(Type ^ attributeType, bool inherit) = System::Reflection::ICustomAttributeProvider::IsDefined;
bool ICustomAttributeProvider.IsDefined(Type attributeType, bool inherit);
abstract member System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
override this.System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean Implements ICustomAttributeProvider.IsDefined
- attributeType
- Type
The type of the custom attributes.
- inherit
- Boolean
When true
, look up the hierarchy chain for the inherited custom attribute.
true
if the attributeType
is defined on this member; false
otherwise.
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Standard | 1.5, 1.6 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: