Share via


ComposablePartDefinition Constructors

Definition

Overloads

ComposablePartDefinition(TypeRef, IReadOnlyDictionary<String, Object>, IReadOnlyCollection<ExportDefinition>, IReadOnlyDictionary<MemberRef, IReadOnlyCollection<ExportDefinition>>, IEnumerable<ImportDefinitionBinding>, String, MethodRef, MethodRef, IReadOnlyList<ImportDefinitionBinding>, CreationPolicy, Boolean)

Initializes a new instance of the ComposablePartDefinition class.

ComposablePartDefinition(TypeRef, IReadOnlyDictionary<String, Object>, IReadOnlyCollection<ExportDefinition>, IReadOnlyDictionary<MemberRef, IReadOnlyCollection<ExportDefinition>>, IEnumerable<ImportDefinitionBinding>, String, MethodRef, MethodRef, IReadOnlyList<ImportDefinitionBinding>, CreationPolicy, IEnumerable<AssemblyName>, Boolean)

Initializes a new instance of the ComposablePartDefinition class.

ComposablePartDefinition(TypeRef, IReadOnlyDictionary<String, Object>, IReadOnlyCollection<ExportDefinition>, IReadOnlyDictionary<MemberRef, IReadOnlyCollection<ExportDefinition>>, IEnumerable<ImportDefinitionBinding>, String, MethodRef, MethodRef, IReadOnlyList<ImportDefinitionBinding>, CreationPolicy, Boolean)

Source:
ComposablePartDefinition.cs
Source:
ComposablePartDefinition.cs

Initializes a new instance of the ComposablePartDefinition class.

public ComposablePartDefinition (Microsoft.VisualStudio.Composition.Reflection.TypeRef partType, System.Collections.Generic.IReadOnlyDictionary<string,object> metadata, System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.ExportDefinition> exportedTypes, System.Collections.Generic.IReadOnlyDictionary<Microsoft.VisualStudio.Composition.Reflection.MemberRef,System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.ExportDefinition>> exportingMembers, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Composition.ImportDefinitionBinding> importingMembers, string sharingBoundary, Microsoft.VisualStudio.Composition.Reflection.MethodRef onImportsSatisfied, Microsoft.VisualStudio.Composition.Reflection.MethodRef importingConstructorRef, System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Composition.ImportDefinitionBinding> importingConstructorImports, Microsoft.VisualStudio.Composition.CreationPolicy partCreationPolicy, bool isSharingBoundaryInferred = false);
new Microsoft.VisualStudio.Composition.ComposablePartDefinition : Microsoft.VisualStudio.Composition.Reflection.TypeRef * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.ExportDefinition> * System.Collections.Generic.IReadOnlyDictionary<Microsoft.VisualStudio.Composition.Reflection.MemberRef, System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.ExportDefinition>> * seq<Microsoft.VisualStudio.Composition.ImportDefinitionBinding> * string * Microsoft.VisualStudio.Composition.Reflection.MethodRef * Microsoft.VisualStudio.Composition.Reflection.MethodRef * System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Composition.ImportDefinitionBinding> * Microsoft.VisualStudio.Composition.CreationPolicy * bool -> Microsoft.VisualStudio.Composition.ComposablePartDefinition
Public Sub New (partType As TypeRef, metadata As IReadOnlyDictionary(Of String, Object), exportedTypes As IReadOnlyCollection(Of ExportDefinition), exportingMembers As IReadOnlyDictionary(Of MemberRef, IReadOnlyCollection(Of ExportDefinition)), importingMembers As IEnumerable(Of ImportDefinitionBinding), sharingBoundary As String, onImportsSatisfied As MethodRef, importingConstructorRef As MethodRef, importingConstructorImports As IReadOnlyList(Of ImportDefinitionBinding), partCreationPolicy As CreationPolicy, Optional isSharingBoundaryInferred As Boolean = false)

Parameters

partType
TypeRef

Type of the part.

metadata
IReadOnlyDictionary<String,Object>

The metadata discovered on the part.

exportedTypes
IReadOnlyCollection<ExportDefinition>

The exported types.

exportingMembers
IReadOnlyDictionary<MemberRef,IReadOnlyCollection<ExportDefinition>>

The exporting members.

importingMembers
IEnumerable<ImportDefinitionBinding>

The importing members.

sharingBoundary
String

The sharing boundary that this part is shared within.

onImportsSatisfied
MethodRef

The method to invoke after satisfying imports, if any.

importingConstructorRef
MethodRef

The constructor to invoke to construct the part.

importingConstructorImports
IReadOnlyList<ImportDefinitionBinding>

The importing arguments taken by the importing constructor. null if the part cannot be instantiated.

partCreationPolicy
CreationPolicy

The creation policy for this part.

isSharingBoundaryInferred
Boolean

A value indicating whether the part does not have an explicit sharing boundary, and therefore can obtain its sharing boundary based on its imports.

Applies to

ComposablePartDefinition(TypeRef, IReadOnlyDictionary<String, Object>, IReadOnlyCollection<ExportDefinition>, IReadOnlyDictionary<MemberRef, IReadOnlyCollection<ExportDefinition>>, IEnumerable<ImportDefinitionBinding>, String, MethodRef, MethodRef, IReadOnlyList<ImportDefinitionBinding>, CreationPolicy, IEnumerable<AssemblyName>, Boolean)

Source:
ComposablePartDefinition.cs
Source:
ComposablePartDefinition.cs

Initializes a new instance of the ComposablePartDefinition class.

public ComposablePartDefinition (Microsoft.VisualStudio.Composition.Reflection.TypeRef partType, System.Collections.Generic.IReadOnlyDictionary<string,object> metadata, System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.ExportDefinition> exportedTypes, System.Collections.Generic.IReadOnlyDictionary<Microsoft.VisualStudio.Composition.Reflection.MemberRef,System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.ExportDefinition>> exportingMembers, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Composition.ImportDefinitionBinding> importingMembers, string sharingBoundary, Microsoft.VisualStudio.Composition.Reflection.MethodRef onImportsSatisfied, Microsoft.VisualStudio.Composition.Reflection.MethodRef importingConstructorRef, System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Composition.ImportDefinitionBinding> importingConstructorImports, Microsoft.VisualStudio.Composition.CreationPolicy partCreationPolicy, System.Collections.Generic.IEnumerable<System.Reflection.AssemblyName> extraInputAssemblies, bool isSharingBoundaryInferred = false);
new Microsoft.VisualStudio.Composition.ComposablePartDefinition : Microsoft.VisualStudio.Composition.Reflection.TypeRef * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.ExportDefinition> * System.Collections.Generic.IReadOnlyDictionary<Microsoft.VisualStudio.Composition.Reflection.MemberRef, System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.ExportDefinition>> * seq<Microsoft.VisualStudio.Composition.ImportDefinitionBinding> * string * Microsoft.VisualStudio.Composition.Reflection.MethodRef * Microsoft.VisualStudio.Composition.Reflection.MethodRef * System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Composition.ImportDefinitionBinding> * Microsoft.VisualStudio.Composition.CreationPolicy * seq<System.Reflection.AssemblyName> * bool -> Microsoft.VisualStudio.Composition.ComposablePartDefinition
Public Sub New (partType As TypeRef, metadata As IReadOnlyDictionary(Of String, Object), exportedTypes As IReadOnlyCollection(Of ExportDefinition), exportingMembers As IReadOnlyDictionary(Of MemberRef, IReadOnlyCollection(Of ExportDefinition)), importingMembers As IEnumerable(Of ImportDefinitionBinding), sharingBoundary As String, onImportsSatisfied As MethodRef, importingConstructorRef As MethodRef, importingConstructorImports As IReadOnlyList(Of ImportDefinitionBinding), partCreationPolicy As CreationPolicy, extraInputAssemblies As IEnumerable(Of AssemblyName), Optional isSharingBoundaryInferred As Boolean = false)

Parameters

partType
TypeRef

Type of the part.

metadata
IReadOnlyDictionary<String,Object>

The metadata discovered on the part.

exportedTypes
IReadOnlyCollection<ExportDefinition>

The exported types.

exportingMembers
IReadOnlyDictionary<MemberRef,IReadOnlyCollection<ExportDefinition>>

The exporting members.

importingMembers
IEnumerable<ImportDefinitionBinding>

The importing members.

sharingBoundary
String

The sharing boundary that this part is shared within.

onImportsSatisfied
MethodRef

The method to invoke after satisfying imports, if any.

importingConstructorRef
MethodRef

The constructor to invoke to construct the part.

importingConstructorImports
IReadOnlyList<ImportDefinitionBinding>

The importing arguments taken by the importing constructor. null if the part cannot be instantiated.

partCreationPolicy
CreationPolicy

The creation policy for this part.

extraInputAssemblies
IEnumerable<AssemblyName>

A sequence of extra assemblies to be added to the set for Microsoft.VisualStudio.Composition.ComposablePartDefinition.GetInputAssemblies(System.Collections.Generic.ISet{System.Reflection.AssemblyName})

isSharingBoundaryInferred
Boolean

A value indicating whether the part does not have an explicit sharing boundary, and therefore can obtain its sharing boundary based on its imports.

Applies to