1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="ImportDefinition" FullName="System.ComponentModel.Composition.Primitives.ImportDefinition">
3 <TypeSignature Language="C#" Value="public class ImportDefinition" />
4 <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ImportDefinition 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>Represents an import that is required by a <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> object.</para>
21 <Member MemberName=".ctor">
22 <MemberSignature Language="C#" Value="protected ImportDefinition ();" />
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>
31 <attribution license="cc4" from="Microsoft" modified="false" />
32 <para>Derived types that call this constructor must override the <see cref="P:System.ComponentModel.Composition.Primitives.ImportDefinition.Constraint" /> property, and optionally, the <see cref="P:System.ComponentModel.Composition.Primitives.ImportDefinition.Cardinality" />, <see cref="P:System.ComponentModel.Composition.Primitives.ImportDefinition.IsPrerequisite" /> and <see cref="P:System.ComponentModel.Composition.Primitives.ImportDefinition.IsRecomposable" /> properties.</para>
35 <attribution license="cc4" from="Microsoft" modified="false" />
36 <para>Initializes a new instance of the <see cref="T:System.ComponentModel.Composition.Primitives.ImportDefinition" /> class.</para>
40 <Member MemberName=".ctor">
41 <MemberSignature Language="C#" Value="public ImportDefinition (System.Linq.Expressions.Expression<Func<System.ComponentModel.Composition.Primitives.ExportDefinition,bool>> constraint, string contractName, System.ComponentModel.Composition.Primitives.ImportCardinality cardinality, bool isRecomposable, bool isPrerequisite);" />
42 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Linq.Expressions.Expression`1<class System.Func`2<class System.ComponentModel.Composition.Primitives.ExportDefinition, bool>> constraint, string contractName, valuetype System.ComponentModel.Composition.Primitives.ImportCardinality cardinality, bool isRecomposable, bool isPrerequisite) cil managed" />
43 <MemberType>Constructor</MemberType>
45 <AssemblyVersion>4.0.0.0</AssemblyVersion>
48 <Parameter Name="constraint" Type="System.Linq.Expressions.Expression<System.Func<System.ComponentModel.Composition.Primitives.ExportDefinition,System.Boolean>>" />
49 <Parameter Name="contractName" Type="System.String" />
50 <Parameter Name="cardinality" Type="System.ComponentModel.Composition.Primitives.ImportCardinality" />
51 <Parameter Name="isRecomposable" Type="System.Boolean" />
52 <Parameter Name="isPrerequisite" Type="System.Boolean" />
55 <remarks>To be added.</remarks>
57 <attribution license="cc4" from="Microsoft" modified="false" />
58 <para>Initializes a new instance of the <see cref="T:System.ComponentModel.Composition.Primitives.ImportDefinition" /> class with the specified constraint, contract name, and cardinality, and indicates whether the import definition is recomposable or a prerequisite.</para>
60 <param name="constraint">
61 <attribution license="cc4" from="Microsoft" modified="false" />An expression that contains a <see cref="T:System.Func`2" /> object that defines the conditions an <see cref="T:System.ComponentModel.Composition.Primitives.Export" /> must match to satisfy the import definition.</param>
62 <param name="contractName">
63 <attribution license="cc4" from="Microsoft" modified="false" />The contract name.</param>
64 <param name="cardinality">
65 <attribution license="cc4" from="Microsoft" modified="false" />One of the enumeration values that indicates the cardinality of the <see cref="T:System.ComponentModel.Composition.Primitives.Export" /> objects required by the import definition.</param>
66 <param name="isRecomposable">
67 <attribution license="cc4" from="Microsoft" modified="false" />true to specify that the import definition can be satisfied multiple times throughout the lifetime of a <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> object; otherwise, false.</param>
68 <param name="isPrerequisite">
69 <attribution license="cc4" from="Microsoft" modified="false" />true to specify that the import definition must be satisfied before a <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> can start producing exported objects; otherwise, false.</param>
72 <Member MemberName=".ctor">
73 <MemberSignature Language="C#" Value="public ImportDefinition (System.Linq.Expressions.Expression<Func<System.ComponentModel.Composition.Primitives.ExportDefinition,bool>> constraint, string contractName, System.ComponentModel.Composition.Primitives.ImportCardinality cardinality, bool isRecomposable, bool isPrerequisite, System.Collections.Generic.IDictionary<string,object> metadata);" />
74 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Linq.Expressions.Expression`1<class System.Func`2<class System.ComponentModel.Composition.Primitives.ExportDefinition, bool>> constraint, string contractName, valuetype System.ComponentModel.Composition.Primitives.ImportCardinality cardinality, bool isRecomposable, bool isPrerequisite, class System.Collections.Generic.IDictionary`2<string, object> metadata) cil managed" />
75 <MemberType>Constructor</MemberType>
77 <AssemblyVersion>4.0.0.0</AssemblyVersion>
80 <Parameter Name="constraint" Type="System.Linq.Expressions.Expression<System.Func<System.ComponentModel.Composition.Primitives.ExportDefinition,System.Boolean>>" />
81 <Parameter Name="contractName" Type="System.String" />
82 <Parameter Name="cardinality" Type="System.ComponentModel.Composition.Primitives.ImportCardinality" />
83 <Parameter Name="isRecomposable" Type="System.Boolean" />
84 <Parameter Name="isPrerequisite" Type="System.Boolean" />
85 <Parameter Name="metadata" Type="System.Collections.Generic.IDictionary<System.String,System.Object>" />
88 <remarks>To be added.</remarks>
90 <attribution license="cc4" from="Microsoft" modified="false" />
91 <para>Initializes a new instance of the <see cref="T:System.ComponentModel.Composition.Primitives.ImportDefinition" /> class with the specified constraint, contract name, cardinality, and metadata, and indicates whether the import definition is recomposable or a prerequisite.</para>
93 <param name="constraint">
94 <attribution license="cc4" from="Microsoft" modified="false" />An expression that contains a <see cref="T:System.Func`2" /> object that defines the conditions an <see cref="T:System.ComponentModel.Composition.Primitives.Export" /> must match to satisfy the import definition.</param>
95 <param name="contractName">
96 <attribution license="cc4" from="Microsoft" modified="false" />The contract name.</param>
97 <param name="cardinality">
98 <attribution license="cc4" from="Microsoft" modified="false" />One of the enumeration values that indicates the cardinality of the <see cref="T:System.ComponentModel.Composition.Primitives.Export" /> objects required by the import definition.</param>
99 <param name="isRecomposable">
100 <attribution license="cc4" from="Microsoft" modified="false" />true to specify that the import definition can be satisfied multiple times throughout the lifetime of a <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> object; otherwise, false.</param>
101 <param name="isPrerequisite">
102 <attribution license="cc4" from="Microsoft" modified="false" />true to specify that the import definition must be satisfied before a <see cref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> can start producing exported objects; otherwise, false.</param>
103 <param name="metadata">
104 <attribution license="cc4" from="Microsoft" modified="false" />The metadata associated with the import.</param>
107 <Member MemberName="Cardinality">
108 <MemberSignature Language="C#" Value="public virtual System.ComponentModel.Composition.Primitives.ImportCardinality Cardinality { get; }" />
109 <MemberSignature Language="ILAsm" Value=".property instance valuetype System.ComponentModel.Composition.Primitives.ImportCardinality Cardinality" />
110 <MemberType>Property</MemberType>
112 <AssemblyVersion>4.0.0.0</AssemblyVersion>
115 <ReturnType>System.ComponentModel.Composition.Primitives.ImportCardinality</ReturnType>
118 <value>To be added.</value>
119 <remarks>To be added.</remarks>
121 <attribution license="cc4" from="Microsoft" modified="false" />
122 <para>Gets the cardinality of the exports required by the import definition.</para>
126 <Member MemberName="Constraint">
127 <MemberSignature Language="C#" Value="public virtual System.Linq.Expressions.Expression<Func<System.ComponentModel.Composition.Primitives.ExportDefinition,bool>> Constraint { get; }" />
128 <MemberSignature Language="ILAsm" Value=".property instance class System.Linq.Expressions.Expression`1<class System.Func`2<class System.ComponentModel.Composition.Primitives.ExportDefinition, bool>> Constraint" />
129 <MemberType>Property</MemberType>
131 <AssemblyVersion>4.0.0.0</AssemblyVersion>
134 <ReturnType>System.Linq.Expressions.Expression<System.Func<System.ComponentModel.Composition.Primitives.ExportDefinition,System.Boolean>></ReturnType>
137 <value>To be added.</value>
139 <attribution license="cc4" from="Microsoft" modified="false" />
140 <para>Overrides of this property should never return null.</para>
143 <attribution license="cc4" from="Microsoft" modified="false" />
144 <para>Gets an expression that defines conditions that the import must satisfy to match the import definition.</para>
148 <Member MemberName="ContractName">
149 <MemberSignature Language="C#" Value="public virtual string ContractName { get; }" />
150 <MemberSignature Language="ILAsm" Value=".property instance string ContractName" />
151 <MemberType>Property</MemberType>
153 <AssemblyVersion>4.0.0.0</AssemblyVersion>
156 <ReturnType>System.String</ReturnType>
159 <value>To be added.</value>
160 <remarks>To be added.</remarks>
162 <attribution license="cc4" from="Microsoft" modified="false" />
163 <para>Gets the name of the contract.</para>
167 <Member MemberName="IsConstraintSatisfiedBy">
168 <MemberSignature Language="C#" Value="public virtual bool IsConstraintSatisfiedBy (System.ComponentModel.Composition.Primitives.ExportDefinition exportDefinition);" />
169 <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool IsConstraintSatisfiedBy(class System.ComponentModel.Composition.Primitives.ExportDefinition exportDefinition) cil managed" />
170 <MemberType>Method</MemberType>
172 <AssemblyVersion>4.0.0.0</AssemblyVersion>
175 <ReturnType>System.Boolean</ReturnType>
178 <Parameter Name="exportDefinition" Type="System.ComponentModel.Composition.Primitives.ExportDefinition" />
181 <remarks>To be added.</remarks>
183 <attribution license="cc4" from="Microsoft" modified="false" />
184 <para>Gets a value that indicates whether the export represented by the specified definition satisfies the constraints of this import definition.</para>
187 <attribution license="cc4" from="Microsoft" modified="false" />
188 <para>true if the constraints are satisfied; otherwise, false.</para>
190 <param name="exportDefinition">
191 <attribution license="cc4" from="Microsoft" modified="false" />The export definition to test.</param>
194 <Member MemberName="IsPrerequisite">
195 <MemberSignature Language="C#" Value="public virtual bool IsPrerequisite { get; }" />
196 <MemberSignature Language="ILAsm" Value=".property instance bool IsPrerequisite" />
197 <MemberType>Property</MemberType>
199 <AssemblyVersion>4.0.0.0</AssemblyVersion>
202 <ReturnType>System.Boolean</ReturnType>
205 <value>To be added.</value>
206 <remarks>To be added.</remarks>
208 <attribution license="cc4" from="Microsoft" modified="false" />
209 <para>Gets a value that indicates whether the import definition must be satisfied before a part can start producing exported objects.</para>
213 <Member MemberName="IsRecomposable">
214 <MemberSignature Language="C#" Value="public virtual bool IsRecomposable { get; }" />
215 <MemberSignature Language="ILAsm" Value=".property instance bool IsRecomposable" />
216 <MemberType>Property</MemberType>
218 <AssemblyVersion>4.0.0.0</AssemblyVersion>
221 <ReturnType>System.Boolean</ReturnType>
224 <value>To be added.</value>
225 <remarks>To be added.</remarks>
227 <attribution license="cc4" from="Microsoft" modified="false" />
228 <para>Gets a value that indicates whether the import definition can be satisfied multiple times.</para>
232 <Member MemberName="Metadata">
233 <MemberSignature Language="C#" Value="public virtual System.Collections.Generic.IDictionary<string,object> Metadata { get; }" />
234 <MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IDictionary`2<string, object> Metadata" />
235 <MemberType>Property</MemberType>
237 <AssemblyVersion>4.0.0.0</AssemblyVersion>
240 <ReturnType>System.Collections.Generic.IDictionary<System.String,System.Object></ReturnType>
243 <value>To be added.</value>
245 <attribution license="cc4" from="Microsoft" modified="false" />
246 <para>This property should never return null. Imports with no metadata should return an empty <see cref="T:System.Collections.Generic.IDictionary`2" /> collection.</para>
249 <attribution license="cc4" from="Microsoft" modified="false" />
250 <para>Gets the metadata associated with this import.</para>
254 <Member MemberName="ToString">
255 <MemberSignature Language="C#" Value="public override string ToString ();" />
256 <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" />
257 <MemberType>Method</MemberType>
259 <AssemblyVersion>4.0.0.0</AssemblyVersion>
262 <ReturnType>System.String</ReturnType>
266 <remarks>To be added.</remarks>
268 <attribution license="cc4" from="Microsoft" modified="false" />
269 <para>Returns a string representation of the import definition.</para>
272 <attribution license="cc4" from="Microsoft" modified="false" />
273 <para>A string representation of the import definition.</para>