ComponentInstaller 類別

定義

指定安裝程式,其複製元件的屬性以使用於安裝期間。Specifies an installer that copies properties from a component to use at install time.

public ref class ComponentInstaller abstract : System::Configuration::Install::Installer
public abstract class ComponentInstaller : System.Configuration.Install.Installer
type ComponentInstaller = class
    inherit Installer
Public MustInherit Class ComponentInstaller
Inherits Installer
繼承
衍生

給實施者的注意事項

當您繼承自ComponentInstaller時, 您必須覆CopyFromComponent(IComponent)寫方法Install(IDictionary) , 而且通常會覆Uninstall(IDictionary)寫和方法。When you inherit from ComponentInstaller, you must override the CopyFromComponent(IComponent) method, and typically override the Install(IDictionary) and Uninstall(IDictionary) methods.

建構函式

ComponentInstaller()

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

屬性

CanRaiseEvents

取得值,指出元件是否能引發事件。Gets a value indicating whether the component can raise an event.

(繼承來源 Component)
Container

取得包含 IContainerComponentGets the IContainer that contains the Component.

(繼承來源 Component)
Context

取得或設定有關目前安裝的資訊。Gets or sets information about the current installation.

(繼承來源 Installer)
DesignMode

取得值,指出 Component 目前是否處於設計模式。Gets a value that indicates whether the Component is currently in design mode.

(繼承來源 Component)
Events

取得附加在這個 Component 上的事件處理常式清單。Gets the list of event handlers that are attached to this Component.

(繼承來源 Component)
HelpText

取得安裝程式集合中所有安裝程式的說明文字。Gets the help text for all the installers in the installer collection.

(繼承來源 Installer)
Installers

取得這個安裝程式包含的安裝程式集合。Gets the collection of installers that this installer contains.

(繼承來源 Installer)
Parent

取得或設定安裝程式,含有這個安裝程式所屬的集合。Gets or sets the installer containing the collection that this installer belongs to.

(繼承來源 Installer)
Site

取得或設定 ComponentISiteGets or sets the ISite of the Component.

(繼承來源 Component)

方法

Commit(IDictionary)

當在衍生類別中被覆寫時,完成安裝異動。When overridden in a derived class, completes the install transaction.

(繼承來源 Installer)
CopyFromComponent(IComponent)

當在衍生類別中覆寫時,從指定的元件複製安裝期間所需要的所有屬性。When overridden in a derived class, copies all the properties that are required at install time from the specified component.

CreateObjRef(Type)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(繼承來源 MarshalByRefObject)
Dispose()

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

(繼承來源 Component)
Dispose(Boolean)

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

(繼承來源 Component)
Equals(Object)

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

(繼承來源 Object)
GetHashCode()

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

(繼承來源 Object)
GetLifetimeService()

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
GetService(Type)

傳回表示 Component 或其 Container 所提供之服務的物件。Returns an object that represents a service provided by the Component or by its Container.

(繼承來源 Component)
GetType()

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

(繼承來源 Object)
InitializeLifetimeService()

取得存留期服務物件,以控制這個執行個體的存留期原則。Obtains a lifetime service object to control the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
Install(IDictionary)

當在衍生類別中被覆寫時,執行安裝。When overridden in a derived class, performs the installation.

(繼承來源 Installer)
IsEquivalentInstaller(ComponentInstaller)

判斷指定的安裝程式和這個安裝程式是否安裝相同的物件。Determines if the specified installer installs the same object as this installer.

MemberwiseClone()

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

(繼承來源 Object)
MemberwiseClone(Boolean)

建立目前 MarshalByRefObject 物件的淺層複本。Creates a shallow copy of the current MarshalByRefObject object.

(繼承來源 MarshalByRefObject)
OnAfterInstall(IDictionary)

引發 AfterInstall 事件。Raises the AfterInstall event.

(繼承來源 Installer)
OnAfterRollback(IDictionary)

引發 AfterRollback 事件。Raises the AfterRollback event.

(繼承來源 Installer)
OnAfterUninstall(IDictionary)

引發 AfterUninstall 事件。Raises the AfterUninstall event.

(繼承來源 Installer)
OnBeforeInstall(IDictionary)

引發 BeforeInstall 事件。Raises the BeforeInstall event.

(繼承來源 Installer)
OnBeforeRollback(IDictionary)

引發 BeforeRollback 事件。Raises the BeforeRollback event.

(繼承來源 Installer)
OnBeforeUninstall(IDictionary)

引發 BeforeUninstall 事件。Raises the BeforeUninstall event.

(繼承來源 Installer)
OnCommitted(IDictionary)

引發 Committed 事件。Raises the Committed event.

(繼承來源 Installer)
OnCommitting(IDictionary)

引發 Committing 事件。Raises the Committing event.

(繼承來源 Installer)
Rollback(IDictionary)

當在衍生類別中被覆寫時,還原電腦安裝之前的狀態。When overridden in a derived class, restores the pre-installation state of the computer.

(繼承來源 Installer)
ToString()

傳回任何包含 Component 名稱的 StringReturns a String containing the name of the Component, if any. 不應覆寫此方法。This method should not be overridden.

(繼承來源 Component)
Uninstall(IDictionary)

當在衍生類別中被覆寫時,移除安裝。When overridden in a derived class, removes an installation.

(繼承來源 Installer)

事件

AfterInstall

發生於 Install(IDictionary) 屬性中的所有安裝程式的 Installers 方法都已經執行之後。Occurs after the Install(IDictionary) methods of all the installers in the Installers property have run.

(繼承來源 Installer)
AfterRollback

發生於 Installers 屬性中所有安裝程式的安裝都復原之後。Occurs after the installations of all the installers in the Installers property are rolled back.

(繼承來源 Installer)
AfterUninstall

發生於 Installers 屬性中的所有安裝程式執行其解除安裝作業之後。Occurs after all the installers in the Installers property perform their uninstallation operations.

(繼承來源 Installer)
BeforeInstall

發生於安裝程式集合中的每個安裝程式的 Install(IDictionary) 方法執行之前。Occurs before the Install(IDictionary) method of each installer in the installer collection has run.

(繼承來源 Installer)
BeforeRollback

發生於 Installers 屬性中的安裝程式復原之前。Occurs before the installers in the Installers property are rolled back.

(繼承來源 Installer)
BeforeUninstall

發生於 Installers 屬性中的安裝程式執行其解除安裝作業之前。Occurs before the installers in the Installers property perform their uninstall operations.

(繼承來源 Installer)
Committed

發生於 Installers 屬性中的所有安裝程式都認可其安裝之後。Occurs after all the installers in the Installers property have committed their installations.

(繼承來源 Installer)
Committing

發生於 Installers 屬性中的安裝程式認可其安裝之前。Occurs before the installers in the Installers property commit their installations.

(繼承來源 Installer)
Disposed

當此元件由 Dispose() 方法的呼叫處置時發生。Occurs when the component is disposed by a call to the Dispose() method.

(繼承來源 Component)

適用於