1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="CompositionService" FullName="System.ComponentModel.Composition.Hosting.CompositionService">
3 <TypeSignature Language="C#" Value="public class CompositionService : IDisposable, System.ComponentModel.Composition.ICompositionService" />
4 <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit CompositionService extends System.Object implements class System.ComponentModel.Composition.ICompositionService, class System.IDisposable" />
6 <AssemblyName>System.ComponentModel.Composition</AssemblyName>
7 <AssemblyVersion>4.0.0.0</AssemblyVersion>
10 <BaseTypeName>System.Object</BaseTypeName>
14 <InterfaceName>System.ComponentModel.Composition.ICompositionService</InterfaceName>
17 <InterfaceName>System.IDisposable</InterfaceName>
21 <remarks>To be added.</remarks>
23 <attribution license="cc4" from="Microsoft" modified="false" />
24 <para>Provides methods to satisfy imports on an existing part instance.</para>
28 <Member MemberName="Dispose">
29 <MemberSignature Language="C#" Value="public void Dispose ();" />
30 <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Dispose() cil managed" />
31 <MemberType>Method</MemberType>
33 <AssemblyVersion>4.0.0.0</AssemblyVersion>
36 <ReturnType>System.Void</ReturnType>
41 <attribution license="cc4" from="Microsoft" modified="false" />
42 <para>Call Dispose when you are finished using the <see cref="T:System.ComponentModel.Composition.Hosting.CompositionContainer" />. The Dispose method leaves the <see cref="T:System.ComponentModel.Composition.Hosting.CompositionContainer" /> in an unusable state. After calling Dispose, you must release all references to the <see cref="T:System.ComponentModel.Composition.Hosting.CompositionContainer" /> so the garbage collector can reclaim the memory that the <see cref="T:System.ComponentModel.Composition.Hosting.CompositionContainer" /> was occupying.</para>
43 <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>
44 <block subset="none" type="note">
45 <para>Always call Dispose before you release your last reference to the <see cref="T:System.ComponentModel.Composition.Hosting.CompositionContainer" />. Otherwise, the resources it is using will not be freed until the garbage collector calls the <see cref="T:System.ComponentModel.Composition.Hosting.CompositionContainer" /> object's Finalize method.</para>
49 <attribution license="cc4" from="Microsoft" modified="false" />
50 <para>Releases all resources used by the current instance of the <see cref="T:System.ComponentModel.Composition.Hosting.CompositionContainer" /> class.</para>
54 <Member MemberName="SatisfyImportsOnce">
55 <MemberSignature Language="C#" Value="public void SatisfyImportsOnce (System.ComponentModel.Composition.Primitives.ComposablePart part);" />
56 <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SatisfyImportsOnce(class System.ComponentModel.Composition.Primitives.ComposablePart part) cil managed" />
57 <MemberType>Method</MemberType>
59 <AssemblyVersion>4.0.0.0</AssemblyVersion>
62 <ReturnType>System.Void</ReturnType>
65 <Parameter Name="part" Type="System.ComponentModel.Composition.Primitives.ComposablePart" />
68 <remarks>To be added.</remarks>
70 <attribution license="cc4" from="Microsoft" modified="false" />
71 <para>Composes the specified part, with recomposition and validation disabled.</para>
74 <attribution license="cc4" from="Microsoft" modified="false" />The part to compose.</param>