CompositionContextExtensions.SatisfyImports Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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)
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.