ComposablePartDefinition Construtores
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
ComposablePartDefinition(TypeRef, IReadOnlyDictionary<String, Object>, IReadOnlyCollection<ExportDefinition>, IReadOnlyDictionary<MemberRef, IReadOnlyCollection<ExportDefinition>>, IEnumerable<ImportDefinitionBinding>, String, MethodRef, MethodRef, IReadOnlyList<ImportDefinitionBinding>, CreationPolicy, Boolean)
- Origem:
- ComposablePartDefinition.cs
- Origem:
- ComposablePartDefinition.cs
Inicializa uma nova instância da classe ComposablePartDefinition.
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)
Parâmetros
- partType
- TypeRef
Tipo da parte.
- metadata
- IReadOnlyDictionary<String,Object>
Os metadados descobertos por parte.
- exportedTypes
- IReadOnlyCollection<ExportDefinition>
Os tipos exportados.
- exportingMembers
- IReadOnlyDictionary<MemberRef,IReadOnlyCollection<ExportDefinition>>
Os membros exportadores.
- importingMembers
- IEnumerable<ImportDefinitionBinding>
Os membros importadores.
- sharingBoundary
- String
O limite de compartilhamento no qual essa parte é compartilhada.
- onImportsSatisfied
- MethodRef
O método a ser invocado após atender às importações, se houver.
- importingConstructorRef
- MethodRef
O construtor a ser invocado para construir a parte.
- importingConstructorImports
- IReadOnlyList<ImportDefinitionBinding>
Os argumentos de importação usados pelo construtor de importação.
null
se a parte não puder ser instanciada.
- partCreationPolicy
- CreationPolicy
A política de criação desta parte.
- isSharingBoundaryInferred
- Boolean
Um valor que indica se a parte não tem um limite de compartilhamento explícito e, portanto, pode obter seu limite de compartilhamento com base em suas importações.
Aplica-se a
ComposablePartDefinition(TypeRef, IReadOnlyDictionary<String, Object>, IReadOnlyCollection<ExportDefinition>, IReadOnlyDictionary<MemberRef, IReadOnlyCollection<ExportDefinition>>, IEnumerable<ImportDefinitionBinding>, String, MethodRef, MethodRef, IReadOnlyList<ImportDefinitionBinding>, CreationPolicy, IEnumerable<AssemblyName>, Boolean)
- Origem:
- ComposablePartDefinition.cs
- Origem:
- ComposablePartDefinition.cs
Inicializa uma nova instância da classe ComposablePartDefinition.
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)
Parâmetros
- partType
- TypeRef
Tipo da parte.
- metadata
- IReadOnlyDictionary<String,Object>
Os metadados descobertos por parte.
- exportedTypes
- IReadOnlyCollection<ExportDefinition>
Os tipos exportados.
- exportingMembers
- IReadOnlyDictionary<MemberRef,IReadOnlyCollection<ExportDefinition>>
Os membros exportadores.
- importingMembers
- IEnumerable<ImportDefinitionBinding>
Os membros importadores.
- sharingBoundary
- String
O limite de compartilhamento no qual essa parte é compartilhada.
- onImportsSatisfied
- MethodRef
O método a ser invocado após atender às importações, se houver.
- importingConstructorRef
- MethodRef
O construtor a ser invocado para construir a parte.
- importingConstructorImports
- IReadOnlyList<ImportDefinitionBinding>
Os argumentos de importação usados pelo construtor de importação.
null
se a parte não puder ser instanciada.
- partCreationPolicy
- CreationPolicy
A política de criação desta parte.
- extraInputAssemblies
- IEnumerable<AssemblyName>
Uma sequência de assemblies extras a serem adicionados ao conjunto para Microsoft.VisualStudio.Composition.ComposablePartDefinition.GetInputAssemblies(System.Collections.Generic.ISet{System.Reflection.AssemblyName})
- isSharingBoundaryInferred
- Boolean
Um valor que indica se a parte não tem um limite de compartilhamento explícito e, portanto, pode obter seu limite de compartilhamento com base em suas importações.