CatalogExportProvider 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从目录中检索导出。
public ref class CatalogExportProvider : System::ComponentModel::Composition::Hosting::ExportProvider, IDisposable
public class CatalogExportProvider : System.ComponentModel.Composition.Hosting.ExportProvider, IDisposable
type CatalogExportProvider = class
inherit ExportProvider
interface IDisposable
Public Class CatalogExportProvider
Inherits ExportProvider
Implements IDisposable
- 继承
- 实现
注解
重要
此类型实现 IDisposable 接口。 在使用完类型后,您应直接或间接释放类型。 若要直接释放类型,请在 try/catch 块中调用其 Dispose 方法。 若要间接释放类型,请使用 using(在 C# 中)或 Using(在 Visual Basic 中)等语言构造。 有关详细信息,请参阅 IDisposable 接口主题中的“使用实现 IDisposable 的对象”一节。
构造函数
| CatalogExportProvider(ComposablePartCatalog) |
使用指定的目录初始化 CatalogExportProvider 类的新实例。 |
| CatalogExportProvider(ComposablePartCatalog, Boolean) |
使用指定的目录和线程安全模式(可选)初始化 CatalogExportProvider 类的新实例。 |
| CatalogExportProvider(ComposablePartCatalog, CompositionOptions) |
使用指定的目录和组合选项初始化 CatalogExportProvider 类的新实例。 |
属性
| Catalog |
获取用于提供导出的目录。 |
| SourceProvider |
获取或设置向其他导出提供提供访问的导出提供程序。 |
方法
事件
| ExportsChanged |
当 ExportProvider 中的导出更改时发生。 (继承自 ExportProvider) |
| ExportsChanging |
当提供的导出正在更改时发生。 (继承自 ExportProvider) |