ImportDefinition 类

定义

[System.Diagnostics.DebuggerDisplay("{ContractName,nq} ({Cardinality})")]
public class ImportDefinition : IEquatable<Microsoft.VisualStudio.Composition.ImportDefinition>
[<System.Diagnostics.DebuggerDisplay("{ContractName,nq} ({Cardinality})")>]
type ImportDefinition = class
    interface IEquatable<ImportDefinition>
Public Class ImportDefinition
Implements IEquatable(Of ImportDefinition)
继承
ImportDefinition
属性
实现

构造函数

ImportDefinition(String, ImportCardinality, IReadOnlyDictionary<String,Object>, IReadOnlyCollection<IImportSatisfiabilityConstraint>)

基于 MEF v1 属性初始化 类的新实例 ImportDefinition

ImportDefinition(String, ImportCardinality, IReadOnlyDictionary<String, Object>, IReadOnlyCollection<IImportSatisfiabilityConstraint>, IReadOnlyCollection<String>)

基于 MEF v2 属性初始化 类的新实例 ImportDefinition

属性

Cardinality
ContractName
ExportConstraints
ExportFactorySharingBoundaries

获取使用导出工厂时创建的共享边界。

Metadata

方法

AddExportConstraint(IImportSatisfiabilityConstraint)
Equals(ImportDefinition)
Equals(Object)
GetHashCode()
ToString(TextWriter)
WithExportConstraints(IReadOnlyCollection<IImportSatisfiabilityConstraint>)

适用于