Table of Contents

Class ImportDefinitionBinding

Namespace
Microsoft.VisualStudio.Composition
Assembly
Microsoft.VisualStudio.Composition.dll
public class ImportDefinitionBinding : IEquatable<ImportDefinitionBinding>
Inheritance
ImportDefinitionBinding
Implements
Inherited Members

Constructors

ImportDefinitionBinding(ImportDefinition, TypeRef, MemberRef, TypeRef, TypeRef)

Initializes a new instance of the ImportDefinitionBinding class to represent an importing member.

public ImportDefinitionBinding(ImportDefinition importDefinition, TypeRef composablePartType, MemberRef importingMember, TypeRef importingSiteTypeRef, TypeRef importingSiteTypeWithoutCollectionRef)

Parameters

importDefinition ImportDefinition
composablePartType TypeRef
importingMember MemberRef
importingSiteTypeRef TypeRef
importingSiteTypeWithoutCollectionRef TypeRef

ImportDefinitionBinding(ImportDefinition, TypeRef, ParameterRef, TypeRef, TypeRef)

Initializes a new instance of the ImportDefinitionBinding class to represent a parameter in an importing constructor.

public ImportDefinitionBinding(ImportDefinition importDefinition, TypeRef composablePartType, ParameterRef importingConstructorParameter, TypeRef importingSiteTypeRef, TypeRef importingSiteTypeWithoutCollectionRef)

Parameters

importDefinition ImportDefinition
composablePartType TypeRef
importingConstructorParameter ParameterRef
importingSiteTypeRef TypeRef
importingSiteTypeWithoutCollectionRef TypeRef

Properties

ComposablePartType

public Type ComposablePartType { get; }

Property Value

Type

ComposablePartTypeRef

public TypeRef ComposablePartTypeRef { get; }

Property Value

TypeRef

ExportFactoryType

public Type? ExportFactoryType { get; }

Property Value

Type

ImportDefinition

Gets the definition for this import.

public ImportDefinition ImportDefinition { get; }

Property Value

ImportDefinition

ImportingMember

Gets the member this import is found on. Null for importing constructors.

public MemberInfo? ImportingMember { get; }

Property Value

MemberInfo

ImportingMemberRef

Gets the member this import is found on. Null for importing constructors.

public MemberRef? ImportingMemberRef { get; }

Property Value

MemberRef

ImportingParameter

public ParameterInfo? ImportingParameter { get; }

Property Value

ParameterInfo

ImportingParameterRef

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

ImportingSiteElementTypeRef

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

public TypeRef ImportingSiteElementTypeRef { get; }

Property Value

TypeRef

ImportingSiteType

Gets the actual type of the variable or member that will be assigned the result. This includes any Lazy, ExportFactory or collection wrappers.

public Type ImportingSiteType { get; }

Property Value

Type

Never null.

ImportingSiteTypeRef

Gets the actual type of the variable or member that will be assigned the result. This includes any Lazy, ExportFactory or collection wrappers.

public TypeRef ImportingSiteTypeRef { get; }

Property Value

TypeRef

Never null.

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

MetadataType

public Type? MetadataType { get; }

Property Value

Type

Methods

Equals(ImportDefinitionBinding?)

public bool Equals(ImportDefinitionBinding? other)

Parameters

other ImportDefinitionBinding

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString(TextWriter)

public void ToString(TextWriter writer)

Parameters

writer TextWriter