InheritanceService InheritanceService InheritanceService InheritanceService Class

定義

提供一組用來識別繼承的元件的方法。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
繼承
InheritanceServiceInheritanceServiceInheritanceServiceInheritanceService
實作

備註

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() InheritanceService() InheritanceService()

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

方法

AddInheritedComponents(IComponent, IContainer) AddInheritedComponents(IComponent, IContainer) AddInheritedComponents(IComponent, IContainer) AddInheritedComponents(IComponent, IContainer)

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

AddInheritedComponents(Type, IComponent, IContainer) AddInheritedComponents(Type, IComponent, IContainer) AddInheritedComponents(Type, IComponent, IContainer) AddInheritedComponents(Type, IComponent, IContainer)

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

Dispose() Dispose() Dispose() Dispose()

釋放 InheritanceService 所使用的所有資源。Releases all resources used by the InheritanceService.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetInheritanceAttribute(IComponent) GetInheritanceAttribute(IComponent) GetInheritanceAttribute(IComponent) GetInheritanceAttribute(IComponent)

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

GetType() GetType() GetType() GetType()

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

(Inherited from Object)
IgnoreInheritedMember(MemberInfo, IComponent) IgnoreInheritedMember(MemberInfo, IComponent) IgnoreInheritedMember(MemberInfo, IComponent) IgnoreInheritedMember(MemberInfo, IComponent)

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

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

適用於

另請參閱