Sdílet prostřednictvím


ImportDefinition Konstruktory

Definice

Přetížení

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

Inicializuje novou instanci ImportDefinition třídy na základě atributů MEF v1.

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

Inicializuje novou instanci ImportDefinition třídy na základě atributů MEF v2.

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

Zdroj:
ImportDefinition.cs
Zdroj:
ImportDefinition.cs

Inicializuje novou instanci ImportDefinition třídy na základě atributů MEF v1.

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))

Parametry

contractName
String
cardinality
ImportCardinality

Platí pro

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

Zdroj:
ImportDefinition.cs
Zdroj:
ImportDefinition.cs

Inicializuje novou instanci ImportDefinition třídy na základě atributů MEF v2.

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))

Parametry

contractName
String
cardinality
ImportCardinality
exportFactorySharingBoundaries
IReadOnlyCollection<String>

Platí pro