ערוך

שתף באמצעות


InheritanceService.IgnoreInheritedMember(MemberInfo, IComponent) Method

Definition

Indicates whether to ignore the specified member.

protected:
 virtual bool IgnoreInheritedMember(System::Reflection::MemberInfo ^ member, System::ComponentModel::IComponent ^ component);
protected virtual bool IgnoreInheritedMember (System.Reflection.MemberInfo member, System.ComponentModel.IComponent component);
protected virtual bool IgnoreInheritedMember (System.Reflection.MemberInfo member, System.ComponentModel.IComponent? component);
abstract member IgnoreInheritedMember : System.Reflection.MemberInfo * System.ComponentModel.IComponent -> bool
override this.IgnoreInheritedMember : System.Reflection.MemberInfo * System.ComponentModel.IComponent -> bool
Protected Overridable Function IgnoreInheritedMember (member As MemberInfo, component As IComponent) As Boolean

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

See also