Прочетете на английски

Споделяне чрез


CompositionOperation Class

Definition

Represents a single composition operation.

C#
public sealed class CompositionOperation : IDisposable
Inheritance
CompositionOperation
Implements

Remarks

Instances of this class are not safe for access by multiple threads.

Methods

AddNonPrerequisiteAction(Action)

Specifies an action that can run after all prerequisite part dependencies have been satisfied.

AddPostCompositionAction(Action)

Specifies an action to run after all composition has completed, as indicated by the OnImportsSatisfiedAttribute.

Dispose()

Releases all locks held during the composition operation.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Run(LifetimeContext, CompositeActivator)

Runs the composition operation starting within the specified lifetime context, driven by the specified activator.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Продукт Версии
.NET Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)