InheritanceService 類別

定義

提供一組方法,識別繼承的元件。Provides a set of methods for identifying inherited components.

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 可以用來尋找繼承的元件、選取要忽略哪些元件,以及抓取服務所追蹤之每個繼承類別的繼承屬性。The InheritanceService can be used to find inherited components, select which ones to ignore, and retrieve the inheritance attribute of each inherited class that is tracked by the service.

建構函式

InheritanceService()

初始化 InheritanceService 類別的新執行個體。Initializes a new instance of the InheritanceService class.

方法

AddInheritedComponents(IComponent, IContainer)

會將指定元件所繼承的元件加入 InheritanceServiceAdds the components inherited by the specified component to the InheritanceService.

AddInheritedComponents(Type, IComponent, IContainer)

將由指定元件繼承的指定型別之元件加入 InheritanceServiceAdds the components of the specified type that are inherited by the specified component to the InheritanceService.

Dispose()

釋出 InheritanceService 所使用的全部資源。Releases all resources used by the InheritanceService.

Dispose(Boolean)

釋放 InheritanceService 所使用的 unmanaged 資源並選擇性地釋放 managed 的資源。Releases the unmanaged resources used by the InheritanceService and optionally releases the managed resources.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetInheritanceAttribute(IComponent)

取得指定元件的繼承屬性。Gets the inheritance attribute of the specified component.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

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

指示是否要略過指定的成員。Indicates whether to ignore the specified member.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱