InheritanceService 類別

定義

提供一組方法,識別繼承的元件。

public ref class InheritanceService : IDisposable, System::ComponentModel::Design::IInheritanceService
public class InheritanceService : IDisposable, System.ComponentModel.Design.IInheritanceService
type InheritanceService = class
    interface IInheritanceService
    interface IDisposable
Public Class InheritanceService
Implements IDisposable, IInheritanceService
繼承
InheritanceService
實作

備註

InheritanceService可用來尋找繼承的元件、選取要忽略的元件,以及擷取服務所追蹤之每個繼承類別的繼承屬性。

建構函式

InheritanceService()

初始化 InheritanceService 類別的新執行個體。

方法

AddInheritedComponents(IComponent, IContainer)

會將指定元件所繼承的元件加入 InheritanceService

AddInheritedComponents(Type, IComponent, IContainer)

將由指定元件繼承的指定型別之元件加入 InheritanceService

Dispose()

釋放 InheritanceService 所使用的所有資源。

Dispose(Boolean)

釋放 InheritanceService 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetInheritanceAttribute(IComponent)

取得指定元件的繼承屬性。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
IgnoreInheritedMember(MemberInfo, IComponent)

指示是否要略過指定的成員。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱