Share via


ImportDefinition Class

Definition

[System.Diagnostics.DebuggerDisplay("{ContractName,nq} ({Cardinality})")]
public class ImportDefinition : IEquatable<Microsoft.VisualStudio.Composition.ImportDefinition>
[<System.Diagnostics.DebuggerDisplay("{ContractName,nq} ({Cardinality})")>]
type ImportDefinition = class
    interface IEquatable<ImportDefinition>
Public Class ImportDefinition
Implements IEquatable(Of ImportDefinition)
Inheritance
ImportDefinition
Attributes
Implements

Constructors

ImportDefinition(String, ImportCardinality, IReadOnlyDictionary<String, Object>, IReadOnlyCollection<IImportSatisfiabilityConstraint>, IReadOnlyCollection<String>)

Initializes a new instance of the ImportDefinition class based on MEF v2 attributes.

ImportDefinition(String, ImportCardinality, IReadOnlyDictionary<String,Object>, IReadOnlyCollection<IImportSatisfiabilityConstraint>)

Initializes a new instance of the ImportDefinition class based on MEF v1 attributes.

Properties

Cardinality
ContractName
ExportConstraints
ExportFactorySharingBoundaries

Gets the sharing boundaries created when the export factory is used.

Metadata

Methods

AddExportConstraint(IImportSatisfiabilityConstraint)
Equals(ImportDefinition)
Equals(Object)
GetHashCode()
ToString(TextWriter)
WithExportConstraints(IReadOnlyCollection<IImportSatisfiabilityConstraint>)

Applies to