1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="CatalogExportProvider" FullName="System.ComponentModel.Composition.Hosting.CatalogExportProvider">
3 <TypeSignature Language="C#" Value="public class CatalogExportProvider : System.ComponentModel.Composition.Hosting.ExportProvider, IDisposable" />
4 <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit CatalogExportProvider extends System.ComponentModel.Composition.Hosting.ExportProvider implements class System.IDisposable" />
6 <AssemblyName>System.ComponentModel.Composition</AssemblyName>
7 <AssemblyVersion>4.0.0.0</AssemblyVersion>
10 <BaseTypeName>System.ComponentModel.Composition.Hosting.ExportProvider</BaseTypeName>
14 <InterfaceName>System.IDisposable</InterfaceName>
18 <remarks>To be added.</remarks>
20 <attribution license="cc4" from="Microsoft" modified="false" />
21 <para>Retrieves exports from a catalog.</para>
25 <Member MemberName=".ctor">
26 <MemberSignature Language="C#" Value="public CatalogExportProvider (System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog);" />
27 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog) cil managed" />
28 <MemberType>Constructor</MemberType>
30 <AssemblyVersion>4.0.0.0</AssemblyVersion>
33 <Parameter Name="catalog" Type="System.ComponentModel.Composition.Primitives.ComposablePartCatalog" />
36 <remarks>To be added.</remarks>
38 <attribution license="cc4" from="Microsoft" modified="false" />
39 <para>Initializes a new instance of the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> class with the specified catalog.</para>
41 <param name="catalog">
42 <attribution license="cc4" from="Microsoft" modified="false" />The catalog that the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> uses to produce <see cref="T:System.ComponentModel.Composition.Primitives.Export" /> objects.</param>
45 <Member MemberName=".ctor">
46 <MemberSignature Language="C#" Value="public CatalogExportProvider (System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog, bool isThreadSafe);" />
47 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog, bool isThreadSafe) cil managed" />
48 <MemberType>Constructor</MemberType>
50 <AssemblyVersion>4.0.0.0</AssemblyVersion>
53 <Parameter Name="catalog" Type="System.ComponentModel.Composition.Primitives.ComposablePartCatalog" />
54 <Parameter Name="isThreadSafe" Type="System.Boolean" />
57 <remarks>To be added.</remarks>
59 <attribution license="cc4" from="Microsoft" modified="false" />
60 <para>Initializes a new instance of the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> class with the specified catalog and optional thread-safe mode. </para>
62 <param name="catalog">
63 <attribution license="cc4" from="Microsoft" modified="false" />The catalog that the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> uses to produce <see cref="T:System.ComponentModel.Composition.Primitives.Export" /> objects.</param>
64 <param name="isThreadSafe">
65 <attribution license="cc4" from="Microsoft" modified="false" />true if this object must be thread-safe; otherwise, false.</param>
68 <Member MemberName=".ctor">
69 <MemberSignature Language="C#" Value="public CatalogExportProvider (System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog, System.ComponentModel.Composition.Hosting.CompositionOptions compositionOptions);" />
70 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog, valuetype System.ComponentModel.Composition.Hosting.CompositionOptions compositionOptions) cil managed" />
71 <MemberType>Constructor</MemberType>
73 <AssemblyVersion>4.0.0.0</AssemblyVersion>
76 <Parameter Name="catalog" Type="System.ComponentModel.Composition.Primitives.ComposablePartCatalog" />
77 <Parameter Name="compositionOptions" Type="System.ComponentModel.Composition.Hosting.CompositionOptions" />
80 <remarks>To be added.</remarks>
82 <attribution license="cc4" from="Microsoft" modified="false" />
83 <para>Initializes a new instance of the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> class with the specified catalog and composition options.</para>
85 <param name="catalog">
86 <attribution license="cc4" from="Microsoft" modified="false" />The catalog that the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> uses to produce <see cref="T:System.ComponentModel.Composition.Primitives.Export" /> objects.</param>
87 <param name="compositionOptions">
88 <attribution license="cc4" from="Microsoft" modified="false" />Options that determine the behavior of this provider.</param>
91 <Member MemberName="Catalog">
92 <MemberSignature Language="C#" Value="public System.ComponentModel.Composition.Primitives.ComposablePartCatalog Catalog { get; }" />
93 <MemberSignature Language="ILAsm" Value=".property instance class System.ComponentModel.Composition.Primitives.ComposablePartCatalog Catalog" />
94 <MemberType>Property</MemberType>
96 <AssemblyVersion>4.0.0.0</AssemblyVersion>
99 <ReturnType>System.ComponentModel.Composition.Primitives.ComposablePartCatalog</ReturnType>
102 <value>To be added.</value>
103 <remarks>To be added.</remarks>
105 <attribution license="cc4" from="Microsoft" modified="false" />
106 <para>Gets the catalog that is used to provide exports.</para>
110 <Member MemberName="Dispose">
111 <MemberSignature Language="C#" Value="public void Dispose ();" />
112 <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Dispose() cil managed" />
113 <MemberType>Method</MemberType>
115 <AssemblyVersion>4.0.0.0</AssemblyVersion>
118 <ReturnType>System.Void</ReturnType>
123 <attribution license="cc4" from="Microsoft" modified="false" />
124 <para>Call Dispose when you are finished using the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" />. The Dispose method leaves the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> in an unusable state. After calling Dispose, you must release all references to the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> so the garbage collector can reclaim the memory that the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> was occupying.</para>
125 <para>For more information, see <format type="text/html"><a href="A17B0066-71C2-4BA4-9822-8E19332FC213">Cleaning Up Unmanaged Resources</a></format> and <format type="text/html"><a href="eb4e1af0-3b48-4fbc-ad4e-fc2f64138bf9">Implementing a Dispose Method</a></format>.</para>
126 <block subset="none" type="note">
127 <para>Always call Dispose before you release your last reference to the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" />. Otherwise, the resources it is using will not be freed until the garbage collector calls the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> object's Finalize method.</para>
131 <attribution license="cc4" from="Microsoft" modified="false" />
132 <para>Releases all resources used by the current instance of the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> class.</para>
136 <Member MemberName="Dispose">
137 <MemberSignature Language="C#" Value="protected virtual void Dispose (bool disposing);" />
138 <MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void Dispose(bool disposing) cil managed" />
139 <MemberType>Method</MemberType>
141 <AssemblyVersion>4.0.0.0</AssemblyVersion>
144 <ReturnType>System.Void</ReturnType>
147 <Parameter Name="disposing" Type="System.Boolean" />
150 <remarks>To be added.</remarks>
152 <attribution license="cc4" from="Microsoft" modified="false" />
153 <para>Releases the unmanaged resources used by the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> and optionally releases the managed resources. </para>
155 <param name="disposing">
156 <attribution license="cc4" from="Microsoft" modified="false" />true to release both managed and unmanaged resources; false to release only unmanaged resources. </param>
159 <Member MemberName="GetExportsCore">
160 <MemberSignature Language="C#" Value="protected override System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> GetExportsCore (System.ComponentModel.Composition.Primitives.ImportDefinition definition, System.ComponentModel.Composition.Hosting.AtomicComposition atomicComposition);" />
161 <MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Collections.Generic.IEnumerable`1<class System.ComponentModel.Composition.Primitives.Export> GetExportsCore(class System.ComponentModel.Composition.Primitives.ImportDefinition definition, class System.ComponentModel.Composition.Hosting.AtomicComposition atomicComposition) cil managed" />
162 <MemberType>Method</MemberType>
164 <AssemblyVersion>4.0.0.0</AssemblyVersion>
167 <ReturnType>System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export></ReturnType>
170 <Parameter Name="definition" Type="System.ComponentModel.Composition.Primitives.ImportDefinition" />
171 <Parameter Name="atomicComposition" Type="System.ComponentModel.Composition.Hosting.AtomicComposition" />
175 <attribution license="cc4" from="Microsoft" modified="false" />
176 <para>Implementers should not treat cardinality-related mismatches as errors and should not throw exceptions for cardinality-related mismatches. For example, if the import requests exactly one export and the provider has either no matching exports or more than one, the <see cref="M:System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(System.ComponentModel.Composition.Primitives.ImportDefinition,System.ComponentModel.Composition.Hosting.AtomicComposition)" /> method should return an empty <see cref="T:System.Collections.Generic.IEnumerable`1" /> collection of <see cref="T:System.ComponentModel.Composition.Primitives.Export" /> objects.</para>
179 <attribution license="cc4" from="Microsoft" modified="false" />
180 <para>Returns all exports that match the conditions of the specified import.</para>
183 <attribution license="cc4" from="Microsoft" modified="false" />
184 <para>A collection that contains all the exports that match the specified condition.</para>
186 <param name="definition">
187 <attribution license="cc4" from="Microsoft" modified="false" />The conditions of the <see cref="T:System.ComponentModel.Composition.Primitives.Export" /> objects to be returned.</param>
188 <param name="atomicComposition">
189 <attribution license="cc4" from="Microsoft" modified="false" />The composition transaction to use, or null to disable transactional composition.</param>
192 <Member MemberName="SourceProvider">
193 <MemberSignature Language="C#" Value="public System.ComponentModel.Composition.Hosting.ExportProvider SourceProvider { get; set; }" />
194 <MemberSignature Language="ILAsm" Value=".property instance class System.ComponentModel.Composition.Hosting.ExportProvider SourceProvider" />
195 <MemberType>Property</MemberType>
197 <AssemblyVersion>4.0.0.0</AssemblyVersion>
200 <ReturnType>System.ComponentModel.Composition.Hosting.ExportProvider</ReturnType>
203 <value>To be added.</value>
205 <attribution license="cc4" from="Microsoft" modified="false" />
206 <para>You must set this property before you access any methods on the <see cref="T:System.ComponentModel.Composition.Hosting.CatalogExportProvider" /> object.</para>
209 <attribution license="cc4" from="Microsoft" modified="false" />
210 <para>Gets or sets the export provider that provides access to additional exports.</para>