1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="ComposablePart" FullName="System.ComponentModel.Composition.Primitives.ComposablePart">
3 <TypeSignature Language="C#" Value="public abstract class ComposablePart" />
4 <TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit ComposablePart extends System.Object" />
6 <AssemblyName>System.ComponentModel.Composition</AssemblyName>
7 <AssemblyVersion>4.0.0.0</AssemblyVersion>
10 <BaseTypeName>System.Object</BaseTypeName>
14 <remarks>To be added.</remarks>
16 <attribution license="cc4" from="Microsoft" modified="false" />
17 <para>Defines the abstract base class for composable parts, which import objects and produce exported objects.</para>
21 <Member MemberName=".ctor">
22 <MemberSignature Language="C#" Value="protected ComposablePart ();" />
23 <MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor() cil managed" />
24 <MemberType>Constructor</MemberType>
26 <AssemblyVersion>4.0.0.0</AssemblyVersion>
30 <remarks>To be added.</remarks>
32 <attribution license="cc4" from="Microsoft" modified="false" />
33 <para>Initializes a new instance of the <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> class.</para>
37 <Member MemberName="Activate">
38 <MemberSignature Language="C#" Value="public virtual void Activate ();" />
39 <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Activate() cil managed" />
40 <MemberType>Method</MemberType>
42 <AssemblyVersion>4.0.0.0</AssemblyVersion>
45 <ReturnType>System.Void</ReturnType>
50 <attribution license="cc4" from="Microsoft" modified="false" />
51 <para>Once this method is called, no further imports can be set unless a call is made to Deactivate.</para>
54 <attribution license="cc4" from="Microsoft" modified="false" />
55 <para>Called when all the imports of the part have been set, and exports can be retrieved.</para>
59 <Member MemberName="ExportDefinitions">
60 <MemberSignature Language="C#" Value="public abstract System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ExportDefinition> ExportDefinitions { get; }" />
61 <MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IEnumerable`1<class System.ComponentModel.Composition.Primitives.ExportDefinition> ExportDefinitions" />
62 <MemberType>Property</MemberType>
64 <AssemblyVersion>4.0.0.0</AssemblyVersion>
67 <ReturnType>System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ExportDefinition></ReturnType>
70 <value>To be added.</value>
72 <attribution license="cc4" from="Microsoft" modified="false" />
73 <para>If the <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> object was created from a <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePartDefinition" /> object, this property should return the result of <see cref="P:System.ComponentModel.Composition.Primitives.ComposablePartDefinition.ExportDefinitions" />.</para>
74 <para>Overrides of this property should never return null. If the <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> does not have exports, return an empty <see cref="T:System.Collections.Generic.IEnumerable`1" /> collection instead.</para>
77 <attribution license="cc4" from="Microsoft" modified="false" />
78 <para>Gets a collection of the <see cref="T:System.ComponentModel.Composition.Primitives.ExportDefinition" /> objects that describe the exported objects provided by the part.</para>
82 <Member MemberName="GetExportedValue">
83 <MemberSignature Language="C#" Value="public abstract object GetExportedValue (System.ComponentModel.Composition.Primitives.ExportDefinition definition);" />
84 <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance object GetExportedValue(class System.ComponentModel.Composition.Primitives.ExportDefinition definition) cil managed" />
85 <MemberType>Method</MemberType>
87 <AssemblyVersion>4.0.0.0</AssemblyVersion>
90 <ReturnType>System.Object</ReturnType>
93 <Parameter Name="definition" Type="System.ComponentModel.Composition.Primitives.ExportDefinition" />
96 <remarks>To be added.</remarks>
98 <attribution license="cc4" from="Microsoft" modified="false" />
99 <para>Gets the exported object described by the specified <see cref="T:System.ComponentModel.Composition.Primitives.ExportDefinition" /> object.</para>
102 <attribution license="cc4" from="Microsoft" modified="false" />
103 <para>The exported object described by <paramref name="definition" />.</para>
105 <param name="definition">
106 <attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.ComponentModel.Composition.Primitives.ExportDefinition" /> objects from the <see cref="P:System.ComponentModel.Composition.Primitives.ComposablePart.ExportDefinitions" /> property that describes the exported object to return.</param>
109 <Member MemberName="ImportDefinitions">
110 <MemberSignature Language="C#" Value="public abstract System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ImportDefinition> ImportDefinitions { get; }" />
111 <MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IEnumerable`1<class System.ComponentModel.Composition.Primitives.ImportDefinition> ImportDefinitions" />
112 <MemberType>Property</MemberType>
114 <AssemblyVersion>4.0.0.0</AssemblyVersion>
117 <ReturnType>System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ImportDefinition></ReturnType>
120 <value>To be added.</value>
122 <attribution license="cc4" from="Microsoft" modified="false" />
123 <para>If the <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> object was created from a <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePartDefinition" /> object, this property should return the result of <see cref="P:System.ComponentModel.Composition.Primitives.ComposablePartDefinition.ImportDefinitions" />.</para>
124 <para>Overrides of this property should never return null. If the <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> does not have imports, return an empty <see cref="T:System.Collections.Generic.IEnumerable`1" /> collection instead.</para>
127 <attribution license="cc4" from="Microsoft" modified="false" />
128 <para>Gets a collection of the <see cref="T:System.ComponentModel.Composition.Primitives.ImportDefinition" /> objects that describe the imported objects required by the part.</para>
132 <Member MemberName="Metadata">
133 <MemberSignature Language="C#" Value="public virtual System.Collections.Generic.IDictionary<string,object> Metadata { get; }" />
134 <MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IDictionary`2<string, object> Metadata" />
135 <MemberType>Property</MemberType>
137 <AssemblyVersion>4.0.0.0</AssemblyVersion>
140 <ReturnType>System.Collections.Generic.IDictionary<System.String,System.Object></ReturnType>
143 <value>To be added.</value>
145 <attribution license="cc4" from="Microsoft" modified="false" />
146 <para>If the <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> object was created from a <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePartDefinition" /> object, this property should return the result of <see cref="P:System.ComponentModel.Composition.Primitives.ComposablePartDefinition.Metadata" />.</para>
147 <para>Overrides of this property should return a read-only <see cref="T:System.Collections.Generic.IDictionary`2" /> object with a case-sensitive, non-linguistic comparer, such as <see cref="P:System.StringComparer.Ordinal" />, and should never return null. If the <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> does not contain metadata, return an empty <see cref="T:System.Collections.Generic.IDictionary`2" /> instead.</para>
150 <attribution license="cc4" from="Microsoft" modified="false" />
151 <para>Gets the metadata of the <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> object.</para>
155 <Member MemberName="SetImport">
156 <MemberSignature Language="C#" Value="public abstract void SetImport (System.ComponentModel.Composition.Primitives.ImportDefinition definition, System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> exports);" />
157 <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SetImport(class System.ComponentModel.Composition.Primitives.ImportDefinition definition, class System.Collections.Generic.IEnumerable`1<class System.ComponentModel.Composition.Primitives.Export> exports) cil managed" />
158 <MemberType>Method</MemberType>
160 <AssemblyVersion>4.0.0.0</AssemblyVersion>
163 <ReturnType>System.Void</ReturnType>
166 <Parameter Name="definition" Type="System.ComponentModel.Composition.Primitives.ImportDefinition" />
167 <Parameter Name="exports" Type="System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export>" />
170 <remarks>To be added.</remarks>
172 <attribution license="cc4" from="Microsoft" modified="false" />
173 <para>Sets the import described by the specified <see cref="T:System.ComponentModel.Composition.Primitives.ImportDefinition" /> object to be satisfied by the specified exports.</para>
175 <param name="definition">
176 <attribution license="cc4" from="Microsoft" modified="false" />One of the objects from the <see cref="P:System.ComponentModel.Composition.Primitives.ComposablePart.ImportDefinitions" /> property that specifies the import to be set.</param>
177 <param name="exports">
178 <attribution license="cc4" from="Microsoft" modified="false" />A collection of <see cref="T:System.ComponentModel.Composition.Primitives.Export" /> objects of which to set the import described by <paramref name="definition" />.</param>