ImportSource 枚举

定义

指定指示的值 MEF 组合引擎如何搜索导入。Specifies values that indicate how the MEF composition engine searches for imports.

public enum class ImportSource
public enum ImportSource
type ImportSource = 
Public Enum ImportSource
继承
ImportSource

字段

Any 0

从当前范围或任意先前范围导入可能满足的内容。Imports may be satisfied from the current scope or any ancestor scope.

Local 1

仅从当前范围导入可能满足的内容。Imports may be satisfied only from the current scope.

NonLocal 2

仅从先前范围导入可能满足的内容。Imports may be satisfied only from an ancestor scope.

适用于