InheritanceService.IgnoreInheritedMember(MemberInfo, IComponent) Method

Definition

Indicates whether to ignore the specified member.

C#
protected virtual bool IgnoreInheritedMember(System.Reflection.MemberInfo member, System.ComponentModel.IComponent component);
C#
protected virtual bool IgnoreInheritedMember(System.Reflection.MemberInfo member, System.ComponentModel.IComponent? component);

Parameters

member
MemberInfo

The member to check. This member is either a FieldInfo or a MethodInfo.

component
IComponent

The component instance this member is bound to.

Returns

true if the specified member should be included in the set of inherited components; otherwise, false.

Notes to Inheritors

By overriding this method, users can modify the set of members that the inheritance service ignores. The default implementation ignores all members that are private, and allows only public or protected members.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also