ImportDefinition Constructors
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
ImportDefinition(String, ImportCardinality, IReadOnlyDictionary<String,Object>, IReadOnlyCollection<IImportSatisfiabilityConstraint>) |
Initializes a new instance of the ImportDefinition class based on MEF v1 attributes. |
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>)
- Source:
- ImportDefinition.cs
- Source:
- ImportDefinition.cs
Initializes a new instance of the ImportDefinition class based on MEF v1 attributes.
public ImportDefinition (string contractName, Microsoft.VisualStudio.Composition.ImportCardinality cardinality, System.Collections.Generic.IReadOnlyDictionary<string,object> metadata, System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.IImportSatisfiabilityConstraint> additionalConstraints);
new Microsoft.VisualStudio.Composition.ImportDefinition : string * Microsoft.VisualStudio.Composition.ImportCardinality * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.IImportSatisfiabilityConstraint> -> Microsoft.VisualStudio.Composition.ImportDefinition
Public Sub New (contractName As String, cardinality As ImportCardinality, metadata As IReadOnlyDictionary(Of String, Object), additionalConstraints As IReadOnlyCollection(Of IImportSatisfiabilityConstraint))
Parameters
- contractName
- String
- cardinality
- ImportCardinality
- metadata
- IReadOnlyDictionary<String,Object>
- additionalConstraints
- IReadOnlyCollection<IImportSatisfiabilityConstraint>
Applies to
ImportDefinition(String, ImportCardinality, IReadOnlyDictionary<String, Object>, IReadOnlyCollection<IImportSatisfiabilityConstraint>, IReadOnlyCollection<String>)
- Source:
- ImportDefinition.cs
- Source:
- ImportDefinition.cs
Initializes a new instance of the ImportDefinition class based on MEF v2 attributes.
public ImportDefinition (string contractName, Microsoft.VisualStudio.Composition.ImportCardinality cardinality, System.Collections.Generic.IReadOnlyDictionary<string,object> metadata, System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.IImportSatisfiabilityConstraint> additionalConstraints, System.Collections.Generic.IReadOnlyCollection<string> exportFactorySharingBoundaries);
new Microsoft.VisualStudio.Composition.ImportDefinition : string * Microsoft.VisualStudio.Composition.ImportCardinality * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.IImportSatisfiabilityConstraint> * System.Collections.Generic.IReadOnlyCollection<string> -> Microsoft.VisualStudio.Composition.ImportDefinition
Public Sub New (contractName As String, cardinality As ImportCardinality, metadata As IReadOnlyDictionary(Of String, Object), additionalConstraints As IReadOnlyCollection(Of IImportSatisfiabilityConstraint), exportFactorySharingBoundaries As IReadOnlyCollection(Of String))
Parameters
- contractName
- String
- cardinality
- ImportCardinality
- metadata
- IReadOnlyDictionary<String,Object>
- additionalConstraints
- IReadOnlyCollection<IImportSatisfiabilityConstraint>
- exportFactorySharingBoundaries
- IReadOnlyCollection<String>