IsDefined()

TypeInfo::IsDefined(const TypeInfo&, bool) const method

NOT IMPLEMENTED. Indicates whether one or more attributes of the specified type or of its derived types is applied to this member.

bool System::TypeInfo::IsDefined(const TypeInfo &attributeType, bool inherit) const

Arguments

ParameterTypeDescription
attributeTypeconst TypeInfo&The type of custom attribute to search for. The search includes derived types.
inheritbooltrue to search this member’s inheritance chain to find the attributes; otherwise, false. This parameter is ignored for properties and events.

Return Value

true if one or more instances of attributeType or any of its derived types is applied to this member; otherwise, false.

See Also