ImportSource ImportSource ImportSource ImportSource Enum


指定指示的值 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


Any Any Any Any 0

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

Local Local Local Local 1

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

NonLocal NonLocal NonLocal NonLocal 2

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