ExportProvider.IsFullyInitializedExportRequiredWhenSettingImport 方法

定义

获取一个值,该值指示具有给定特征的导入最初是否必须满足完全预初始化的导出。

protected static bool IsFullyInitializedExportRequiredWhenSettingImport(Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker importingPartTracker, bool isLazy, bool isImportingConstructorArgument);
static member IsFullyInitializedExportRequiredWhenSettingImport : Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker * bool * bool -> bool
Protected Shared Function IsFullyInitializedExportRequiredWhenSettingImport (importingPartTracker As ExportProvider.PartLifecycleTracker, isLazy As Boolean, isImportingConstructorArgument As Boolean) As Boolean

参数

importingPartTracker
ExportProvider.PartLifecycleTracker

正在导入的部件的跟踪器。

isLazy
Boolean

true 如果导入是 Lazy{T} 样式导入,则为 ; false 否则。

isImportingConstructorArgument
Boolean

true 如果导入出现在导入构造函数中,则为 ; false 否则。

返回

true 如果导出在向接收方公开之前必须满足其导入和调用 OnImportsSatisfied 方法,则为 ; false 如果在接收方首次观察到导出时可以部分初始化导出,则为 。

适用于