CompositionOperation CompositionOperation CompositionOperation CompositionOperation Class

定義

表示單一組合作業。Represents a single composition operation.

public ref class CompositionOperation sealed : IDisposable
public sealed class CompositionOperation : IDisposable
type CompositionOperation = class
    interface IDisposable
Public NotInheritable Class CompositionOperation
Implements IDisposable
繼承
CompositionOperationCompositionOperationCompositionOperationCompositionOperation
實作

方法

AddNonPrerequisiteAction(Action) AddNonPrerequisiteAction(Action) AddNonPrerequisiteAction(Action) AddNonPrerequisiteAction(Action)

指定可在滿足所有必要組件相依性之後執行的動作。Specifies an action that can run after all prerequisite part dependencies have been satisfied.

AddPostCompositionAction(Action) AddPostCompositionAction(Action) AddPostCompositionAction(Action) AddPostCompositionAction(Action)

指定要在所有組合完成後執行的動作,如 OnImportsSatisfiedAttribute 所示。Specifies an action to run after all composition has completed, as indicated by the OnImportsSatisfiedAttribute.

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

解除組合作業期間所保留的所有鎖定。Releases all locks held during the composition operation.

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

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
Run(LifetimeContext, CompositeActivator) Run(LifetimeContext, CompositeActivator) Run(LifetimeContext, CompositeActivator) Run(LifetimeContext, CompositeActivator)

在指定的存留期內容中開始執行組合作業,由指定的啟動者驅動。Runs the composition operation starting within the specified lifetime context, driven by the specified activator.

ToString() ToString() ToString() ToString()

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

(Inherited from Object)

適用於