Class RuntimeComposition.RuntimeImport
- Namespace
- Microsoft.VisualStudio.Composition
- Assembly
- Microsoft.VisualStudio.Composition.dll
public class RuntimeComposition.RuntimeImport : IEquatable<RuntimeComposition.RuntimeImport>
- Inheritance
-
RuntimeComposition.RuntimeImport
- Implements
- Inherited Members
Constructors
RuntimeImport(MemberRef?, TypeRef, TypeRef, ImportCardinality, IReadOnlyList<RuntimeExport>, bool, bool, IReadOnlyDictionary<string, object?>, IReadOnlyCollection<string>)
public RuntimeImport(MemberRef? importingMemberRef, TypeRef importingSiteTypeRef, TypeRef importingSiteTypeWithoutCollectionRef, ImportCardinality cardinality, IReadOnlyList<RuntimeComposition.RuntimeExport> satisfyingExports, bool isNonSharedInstanceRequired, bool isExportFactory, IReadOnlyDictionary<string, object?> metadata, IReadOnlyCollection<string> exportFactorySharingBoundaries)
Parameters
importingMemberRef
MemberRefimportingSiteTypeRef
TypeRefimportingSiteTypeWithoutCollectionRef
TypeRefcardinality
ImportCardinalitysatisfyingExports
IReadOnlyList<RuntimeComposition.RuntimeExport>isNonSharedInstanceRequired
boolisExportFactory
boolmetadata
IReadOnlyDictionary<string, object>exportFactorySharingBoundaries
IReadOnlyCollection<string>
RuntimeImport(ParameterRef, TypeRef, TypeRef, ImportCardinality, IReadOnlyList<RuntimeExport>, bool, bool, IReadOnlyDictionary<string, object?>, IReadOnlyCollection<string>)
public RuntimeImport(ParameterRef importingParameterRef, TypeRef importingSiteTypeRef, TypeRef importingSiteTypeWithoutCollectionRef, ImportCardinality cardinality, IReadOnlyList<RuntimeComposition.RuntimeExport> satisfyingExports, bool isNonSharedInstanceRequired, bool isExportFactory, IReadOnlyDictionary<string, object?> metadata, IReadOnlyCollection<string> exportFactorySharingBoundaries)
Parameters
importingParameterRef
ParameterRefimportingSiteTypeRef
TypeRefimportingSiteTypeWithoutCollectionRef
TypeRefcardinality
ImportCardinalitysatisfyingExports
IReadOnlyList<RuntimeComposition.RuntimeExport>isNonSharedInstanceRequired
boolisExportFactory
boolmetadata
IReadOnlyDictionary<string, object>exportFactorySharingBoundaries
IReadOnlyCollection<string>
Properties
Cardinality
public ImportCardinality Cardinality { get; }
Property Value
DeclaringTypeRef
public TypeRef DeclaringTypeRef { get; }
Property Value
ExportFactory
public Type? ExportFactory { get; }
Property Value
ExportFactorySharingBoundaries
Gets the sharing boundaries created when the export factory is used.
public IReadOnlyCollection<string> ExportFactorySharingBoundaries { get; }
Property Value
ImportingMember
public MemberInfo? ImportingMember { get; }
Property Value
ImportingMemberRef
Gets the importing member. May be empty if the import site is an importing constructor parameter.
public MemberRef? ImportingMemberRef { get; }
Property Value
ImportingParameter
public ParameterInfo? ImportingParameter { get; }
Property Value
ImportingParameterRef
Gets the importing parameter. May be empty if the import site is an importing field or property.
public ParameterRef? ImportingParameterRef { get; }
Property Value
ImportingSiteElementType
Gets the type of the member, with the ImportMany collection and Lazy/ExportFactory stripped off, when present.
public Type ImportingSiteElementType { get; }
Property Value
ImportingSiteType
public Type ImportingSiteType { get; }
Property Value
ImportingSiteTypeRef
public TypeRef ImportingSiteTypeRef { get; }
Property Value
ImportingSiteTypeWithoutCollection
public Type ImportingSiteTypeWithoutCollection { get; }
Property Value
ImportingSiteTypeWithoutCollectionRef
public TypeRef ImportingSiteTypeWithoutCollectionRef { get; }
Property Value
IsExportFactory
public bool IsExportFactory { get; }
Property Value
IsLazy
public bool IsLazy { get; }
Property Value
IsNonSharedInstanceRequired
public bool IsNonSharedInstanceRequired { get; }
Property Value
Metadata
public IReadOnlyDictionary<string, object?> Metadata { get; }
Property Value
MetadataType
public Type? MetadataType { get; }
Property Value
SatisfyingExports
public IReadOnlyCollection<RuntimeComposition.RuntimeExport> SatisfyingExports { get; }
Property Value
Methods
Equals(RuntimeImport?)
public bool Equals(RuntimeComposition.RuntimeImport? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()