ParameterInfo.ICustomAttributeProvider.IsDefined(Type, Boolean) Method

Definition

Indicates whether one or more instance of attributeType is defined on this member.

C#
bool ICustomAttributeProvider.IsDefined(Type attributeType, bool inherit);

Parameters

attributeType
Type

The type of the custom attributes.

inherit
Boolean

When true, look up the hierarchy chain for the inherited custom attribute.

Returns

true if the attributeType is defined on this member; false otherwise.

Implements

Applies to

Product Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6