Class ComposedPart
- Namespace
- Microsoft.VisualStudio.Composition
- Assembly
- Microsoft.VisualStudio.Composition.dll
public class ComposedPart
- Inheritance
-
ComposedPart
- Inherited Members
Constructors
ComposedPart(ComposablePartDefinition, IReadOnlyDictionary<ImportDefinitionBinding, IReadOnlyList<ExportDefinitionBinding>>, IImmutableSet<string>)
public ComposedPart(ComposablePartDefinition definition, IReadOnlyDictionary<ImportDefinitionBinding, IReadOnlyList<ExportDefinitionBinding>> satisfyingExports, IImmutableSet<string> requiredSharingBoundaries)
Parameters
definition
ComposablePartDefinitionsatisfyingExports
IReadOnlyDictionary<ImportDefinitionBinding, IReadOnlyList<ExportDefinitionBinding>>requiredSharingBoundaries
IImmutableSet<string>
Properties
Definition
public ComposablePartDefinition Definition { get; }
Property Value
RequiredSharingBoundaries
Gets the set of sharing boundaries that this part must be instantiated within.
public IImmutableSet<string> RequiredSharingBoundaries { get; }
Property Value
SatisfyingExports
Gets a map of this part's imports, and the exports which satisfy them.
public IReadOnlyDictionary<ImportDefinitionBinding, IReadOnlyList<ExportDefinitionBinding>> SatisfyingExports { get; }
Property Value
Methods
GetImportingConstructorImports()
public IEnumerable<KeyValuePair<ImportDefinitionBinding, IReadOnlyList<ExportDefinitionBinding>>> GetImportingConstructorImports()
Returns
Validate(IReadOnlyDictionary<Type, ExportDefinitionBinding>)
public IEnumerable<ComposedPartDiagnostic> Validate(IReadOnlyDictionary<Type, ExportDefinitionBinding> metadataViews)
Parameters
metadataViews
IReadOnlyDictionary<Type, ExportDefinitionBinding>