ComposablePart.ExportDefinitions 属性

定义

获取 ExportDefinition 对象的集合,这些对象描述由此部件提供的已导出对象。Gets a collection of the ExportDefinition objects that describe the exported objects provided by the part.

public:
 abstract property System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::ExportDefinition ^> ^ ExportDefinitions { System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::ExportDefinition ^> ^ get(); };
public abstract System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ExportDefinition> ExportDefinitions { get; }
member this.ExportDefinitions : seq<System.ComponentModel.Composition.Primitives.ExportDefinition>
Public MustOverride ReadOnly Property ExportDefinitions As IEnumerable(Of ExportDefinition)

属性值

IEnumerable<ExportDefinition>

描述由 ExportDefinition 提供的已导出对象的 ComposablePart 对象集合。A collection of ExportDefinition objects that describe the exported objects provided by the ComposablePart.

例外

ComposablePart 对象已被释放。The ComposablePart object has been disposed of.

注解

如果 ComposablePart 对象是从对象创建的 ComposablePartDefinition ,则此属性应返回的结果 ExportDefinitionsIf the ComposablePart object was created from a ComposablePartDefinition object, this property should return the result of ExportDefinitions.

此属性的重写绝不应返回 nullOverrides of this property should never return null. 如果没有 ComposablePart 导出,则改为返回一个空 IEnumerable<T> 集合。If the ComposablePart does not have exports, return an empty IEnumerable<T> collection instead.

适用于