InheritanceService.IgnoreInheritedMember(MemberInfo, IComponent) 方法

定義

指示是否要略過指定的成員。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);
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. 此成員為 FieldInfoMethodInfo 兩者的其中一個。This member is either a FieldInfo or a MethodInfo.

component
IComponent

此成員所繫結的元件執行個體。The component instance this member is bound to.

傳回

如果指定的成員應該包含在一組繼承的元件中,則為 true,否則為 falsetrue 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.

適用於

另請參閱