Compartir a través de


CompositionContextExtensions.SatisfyImports Method

Definition

Overloads

SatisfyImports(CompositionContext, Object)

Satisfies the imports of the specified object from the specified context.

SatisfyImports(CompositionContext, Object, AttributedModelProvider)

Satisfies the imports of the specified object from the specified context, using the specified conventions.

SatisfyImports(CompositionContext, Object)

Source:
CompositionContextExtensions.cs
Source:
CompositionContextExtensions.cs
Source:
CompositionContextExtensions.cs
Source:
CompositionContextExtensions.cs

Satisfies the imports of the specified object from the specified context.

public:
[System::Runtime::CompilerServices::Extension]
 static void SatisfyImports(System::Composition::CompositionContext ^ compositionContext, System::Object ^ objectWithLooseImports);
public static void SatisfyImports (this System.Composition.CompositionContext compositionContext, object objectWithLooseImports);
static member SatisfyImports : System.Composition.CompositionContext * obj -> unit
<Extension()>
Public Sub SatisfyImports (compositionContext As CompositionContext, objectWithLooseImports As Object)

Parameters

compositionContext
CompositionContext

The context to draw exports from.

objectWithLooseImports
Object

The object to satisfy imports on.

Exceptions

compositionContext is null.

objectWithLooseImports is null.

objectWithLooseImports has a missing dependency.

Remarks

Because this method uses reflection, it is slow. Caching can help improve performance.

Applies to

SatisfyImports(CompositionContext, Object, AttributedModelProvider)

Source:
CompositionContextExtensions.cs
Source:
CompositionContextExtensions.cs
Source:
CompositionContextExtensions.cs
Source:
CompositionContextExtensions.cs

Satisfies the imports of the specified object from the specified context, using the specified conventions.

public:
[System::Runtime::CompilerServices::Extension]
 static void SatisfyImports(System::Composition::CompositionContext ^ compositionContext, System::Object ^ objectWithLooseImports, System::Composition::Convention::AttributedModelProvider ^ conventions);
public static void SatisfyImports (this System.Composition.CompositionContext compositionContext, object objectWithLooseImports, System.Composition.Convention.AttributedModelProvider conventions);
static member SatisfyImports : System.Composition.CompositionContext * obj * System.Composition.Convention.AttributedModelProvider -> unit
<Extension()>
Public Sub SatisfyImports (compositionContext As CompositionContext, objectWithLooseImports As Object, conventions As AttributedModelProvider)

Parameters

compositionContext
CompositionContext

The context to draw exports from.

objectWithLooseImports
Object

The object to satisfy imports on.

conventions
AttributedModelProvider

Conventions to use when satisfying imports.

Exceptions

compositionContext is null.

objectWithLooseImports is null.

conventions is null.

objectWithLooseImports has a missing dependency.

Remarks

Because this method uses reflection, it is slow. Caching can help improve performance.

Applies to