Table of Contents

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 MemberRef
importingSiteTypeRef TypeRef
importingSiteTypeWithoutCollectionRef TypeRef
cardinality ImportCardinality
satisfyingExports IReadOnlyList<RuntimeComposition.RuntimeExport>
isNonSharedInstanceRequired bool
isExportFactory bool
metadata 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 ParameterRef
importingSiteTypeRef TypeRef
importingSiteTypeWithoutCollectionRef TypeRef
cardinality ImportCardinality
satisfyingExports IReadOnlyList<RuntimeComposition.RuntimeExport>
isNonSharedInstanceRequired bool
isExportFactory bool
metadata IReadOnlyDictionary<string, object>
exportFactorySharingBoundaries IReadOnlyCollection<string>

Properties

Cardinality

public ImportCardinality Cardinality { get; }

Property Value

ImportCardinality

DeclaringTypeRef

public TypeRef DeclaringTypeRef { get; }

Property Value

TypeRef

ExportFactory

public Type? ExportFactory { get; }

Property Value

Type

ExportFactorySharingBoundaries

Gets the sharing boundaries created when the export factory is used.

public IReadOnlyCollection<string> ExportFactorySharingBoundaries { get; }

Property Value

IReadOnlyCollection<string>

ImportingMember

public MemberInfo? ImportingMember { get; }

Property Value

MemberInfo

ImportingMemberRef

Gets the importing member. May be empty if the import site is an importing constructor parameter.

public MemberRef? ImportingMemberRef { get; }

Property Value

MemberRef

ImportingParameter

public ParameterInfo? ImportingParameter { get; }

Property Value

ParameterInfo

ImportingParameterRef

Gets the importing parameter. May be empty if the import site is an importing field or property.

public ParameterRef? ImportingParameterRef { get; }

Property Value

ParameterRef

ImportingSiteElementType

Gets the type of the member, with the ImportMany collection and Lazy/ExportFactory stripped off, when present.

public Type ImportingSiteElementType { get; }

Property Value

Type

ImportingSiteType

public Type ImportingSiteType { get; }

Property Value

Type

ImportingSiteTypeRef

public TypeRef ImportingSiteTypeRef { get; }

Property Value

TypeRef

ImportingSiteTypeWithoutCollection

public Type ImportingSiteTypeWithoutCollection { get; }

Property Value

Type

ImportingSiteTypeWithoutCollectionRef

public TypeRef ImportingSiteTypeWithoutCollectionRef { get; }

Property Value

TypeRef

IsExportFactory

public bool IsExportFactory { get; }

Property Value

bool

IsLazy

public bool IsLazy { get; }

Property Value

bool

IsNonSharedInstanceRequired

public bool IsNonSharedInstanceRequired { get; }

Property Value

bool

Metadata

public IReadOnlyDictionary<string, object?> Metadata { get; }

Property Value

IReadOnlyDictionary<string, object>

MetadataType

public Type? MetadataType { get; }

Property Value

Type

SatisfyingExports

public IReadOnlyCollection<RuntimeComposition.RuntimeExport> SatisfyingExports { get; }

Property Value

IReadOnlyCollection<RuntimeComposition.RuntimeExport>

Methods

Equals(RuntimeImport?)

public bool Equals(RuntimeComposition.RuntimeImport? other)

Parameters

other RuntimeComposition.RuntimeImport

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int