InheritanceService.IgnoreInheritedMember(MemberInfo, IComponent) 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 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
- 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.
true
if the specified member should be included in the set of inherited components; otherwise, false
.
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.
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: