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
ImportDefinitioncomposablePartType
TypeRefimportingMember
MemberRefimportingSiteTypeRef
TypeRefimportingSiteTypeWithoutCollectionRef
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
ImportDefinitioncomposablePartType
TypeRefimportingConstructorParameter
ParameterRefimportingSiteTypeRef
TypeRefimportingSiteTypeWithoutCollectionRef
TypeRef
Properties
ComposablePartType
public Type ComposablePartType { get; }
Property Value
ComposablePartTypeRef
public TypeRef ComposablePartTypeRef { get; }
Property Value
ExportFactoryType
public Type? ExportFactoryType { get; }
Property Value
ImportDefinition
Gets the definition for this import.
public ImportDefinition ImportDefinition { get; }
Property Value
ImportingMember
Gets the member this import is found on. Null for importing constructors.
public MemberInfo? ImportingMember { get; }
Property Value
ImportingMemberRef
Gets the member this import is found on. Null for importing constructors.
public MemberRef? ImportingMemberRef { get; }
Property Value
ImportingParameter
public ParameterInfo? ImportingParameter { get; }
Property Value
ImportingParameterRef
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
ImportingSiteElementTypeRef
Gets the type of the member, with the ImportMany collection and Lazy/ExportFactory stripped off, when present.
public TypeRef ImportingSiteElementTypeRef { get; }
Property Value
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
ImportingSiteTypeWithoutCollectionRef
public TypeRef ImportingSiteTypeWithoutCollectionRef { get; }
Property Value
IsExportFactory
public bool IsExportFactory { get; }
Property Value
IsLazy
public bool IsLazy { get; }
Property Value
MetadataType
public Type? MetadataType { get; }
Property Value
Methods
Equals(ImportDefinitionBinding?)
public bool Equals(ImportDefinitionBinding? other)
Parameters
other
ImportDefinitionBinding
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString(TextWriter)
public void ToString(TextWriter writer)
Parameters
writer
TextWriter