You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatically port System.ComponentModel triple slash comments (#2669)
* Automatically port System.ComponentModel triple slash comments
* rpetrusha suggestions
Co-Authored-By: Ron Petrusha <ronpet@microsoft.com>
* Corrected badly formed XML.
* Update VersionConverter.xml
* removed bad para tag
Copy file name to clipboardExpand all lines: xml/System.ComponentModel.Composition.Hosting/AssemblyCatalog.xml
+26-5
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,11 @@
223
223
<paramname="codeBase">A string that specifies the code base of the assembly (that is, the path to the assembly file) that contains the attributed <seecref="T:System.Type" /> objects to add to the <seecref="T:System.ComponentModel.Composition.Hosting.AssemblyCatalog" /> object.</param>
224
224
<paramname="definitionOrigin">The element used by diagnostics to identify the sources of parts.</param>
225
225
<summary>Initializes a new instance of the <seecref="T:System.ComponentModel.Composition.Hosting.AssemblyCatalog" /> class with the specified code base.</summary>
226
-
<remarks>To be added.</remarks>
226
+
<remarks>
227
+
<formattype="text/markdown"><![CDATA[
228
+
The assembly referenced by `codeBase` is loaded into the Load context.
<paramrefname="codeBase" /> is not a valid assembly.
229
233
@@ -266,7 +270,9 @@
266
270
<paramname="codeBase">A string that specifies the code base of the assembly (that is, the path to the assembly file) that contains the attributed <seecref="T:System.Type" /> objects to add to the <seecref="T:System.ComponentModel.Composition.Hosting.AssemblyCatalog" /> object.</param>
267
271
<paramname="reflectionContext">The context used by the catalog to interpret types.</param>
268
272
<summary>Initializes a new instance of the <seecref="T:System.ComponentModel.Composition.Hosting.AssemblyCatalog" /> class with the specified code base and reflection context.</summary>
269
-
<remarks>To be added.</remarks>
273
+
<remarks>
274
+
<formattype="text/markdown"><![CDATA[The assembly referenced by`codebase` is loaded into the Load context.]]></format>
<paramrefname="codeBase" /> is not a valid assembly.
272
278
@@ -342,7 +348,9 @@
342
348
<paramname="reflectionContext">The context used by the catalog to interpret types.</param>
343
349
<paramname="definitionOrigin">The element used by diagnostics to identify the sources of parts.</param>
344
350
<summary>Initializes a new instance of the <seecref="T:System.ComponentModel.Composition.Hosting.AssemblyCatalog" /> class with the specified code base and reflection context.</summary>
345
-
<remarks>To be added.</remarks>
351
+
<remarks>
352
+
<formattype="text/markdown"><![CDATA[The assembly referenced by `codebase` is loaded into the Load context.]]></format>
Copy file name to clipboardExpand all lines: xml/System.ComponentModel.Composition.Hosting/ComposablePartCatalogChangeEventArgs.xml
+1
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@
42
42
<paramname="atomicComposition">The composition transaction to use, or <seelangword="null" /> to disable transactional composition.</param>
43
43
<summary>Initializes a new instance of the <seecref="T:System.ComponentModel.Composition.Hosting.ComposablePartCatalogChangeEventArgs" /> class with the specified changes.</summary>
44
44
<remarks>To be added.</remarks>
45
+
<exceptioncref="T:System.ArgumentNullException"><paramrefname="addedDefinitions" /> or <paramrefname="removedDefinitions" /> is <seelangword="null" />.</exception>
Copy file name to clipboardExpand all lines: xml/System.ComponentModel.Composition.Hosting/CompositionScopeDefinition.xml
+19-3
Original file line number
Diff line number
Diff line change
@@ -270,7 +270,19 @@ For more information, see [Implementing a Dispose method](~/docs/standard/garbag
270
270
<paramname="definition">Conditions that specify which exports to match.</param>
271
271
<summary>Gets a collection of exports that match the conditions specified by the import definition.</summary>
272
272
<returns>A collection of exports that match the specified conditions.</returns>
273
-
<remarks>To be added.</remarks>
273
+
<remarks>
274
+
<formattype="text/markdown"><![CDATA[
275
+
## Note to inheritors
276
+
277
+
Overriders of this property should never return `null`. If there is no <xref:System.ComponentModel.Composition.Primitives.ExportDefinition> that matches the conditions defined by `definition`, return an empty <xref:System.Collections.Generic.IEnumerable%601>.
278
+
]]></format>
279
+
</remarks>
280
+
<exceptioncref="T:System.ArgumentNullException">
281
+
<paramrefname="definition" /> is <seelangword="null" />.
Copy file name to clipboardExpand all lines: xml/System.ComponentModel.Composition.Hosting/ExportsChangeEventArgs.xml
+1
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@
42
42
<paramname="atomicComposition">The composition transaction that contains the change.</param>
43
43
<summary>Initializes a new instance of the <seecref="T:System.ComponentModel.Composition.Hosting.ExportsChangeEventArgs" /> class.</summary>
44
44
<remarks>To be added.</remarks>
45
+
<exceptioncref="T:System.ArgumentNullException"><paramrefname="addedExports" /> or <paramrefname="removedExports" /> is <seelangword="null" />.</exception>
Copy file name to clipboardExpand all lines: xml/System.ComponentModel.Composition.Hosting/FilteredCatalog.xml
+14-2
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,19 @@
211
211
<paramname="definition">The import to match.</param>
212
212
<summary>Gets the exported parts from this catalog that match the specified import.</summary>
213
213
<returns>A collection of matching parts.</returns>
214
-
<remarks>To be added.</remarks>
214
+
<remarks>
215
+
<formattype="text/markdown"><![CDATA[
216
+
## Notes to inheritors
217
+
218
+
Overriders of this property should never return `null` if no Mxref:System.ComponentModel.Composition.Primitives.ExportDefinition> matches the conditions defined by `definition`; instead, return an empty <xref:System.Collections.Generic.IEnumerable%601>.
219
+
]]></format>
220
+
</remarks>
221
+
<exceptioncref="T:System.ArgumentNullException">
222
+
<paramrefname="definition" /> is <seelangword="null" />.
An error occurred during previewing, and <paramrefname="atomicComposition" /> is <seelangword="null" />. <seecref="P:System.ComponentModel.Composition.CompositionException.Errors" /> will contain a collection of errors that occurred. The pre-existing composition is in an unknown state, depending on the errors that occurred.</exception>
223
+
<exceptioncref="T:System.ComponentModel.Composition.ChangeRejectedException">An error occurred during previewing, and <paramrefname="atomicComposition" /> is not <seelangword="null" />. <seecref="P:System.ComponentModel.Composition.CompositionException.Errors" /> will contain a collection of errors that occurred. The pre-existing composition remains in valid state.</exception>
224
+
<exceptioncref="T:System.ObjectDisposedException">The <seecref="T:System.ComponentModel.Composition.Hosting.ImportEngine" /> has been disposed.</exception>
221
225
</Docs>
222
226
</Member>
223
227
<MemberMemberName="ReleaseImports">
@@ -269,6 +273,16 @@
269
273
<paramname="part">The part to satisfy the imports of.</param>
270
274
<summary>Satisfies the imports of the specified part.</summary>
271
275
<remarks>To be added.</remarks>
276
+
<exceptioncref="T:System.ArgumentNullException">
277
+
<paramrefname="part" /> is <seelangword="null" />.
Copy file name to clipboardExpand all lines: xml/System.ComponentModel.Composition.Primitives/ComposablePart.xml
+3
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,9 @@
69
69
70
70
]]></format>
71
71
</remarks>
72
+
<exceptioncref="T:System.ObjectDisposedException">The <seecref="T:System.ComponentModel.Composition.Primitives.ComposablePart" /> has been disposed of.</exception>
73
+
<exceptioncref="T:System.ComponentModel.Composition.Primitives.ComposablePartException">An error occurred activating the <seecref="T:System.ComponentModel.Composition.Primitives.ComposablePart" />.
and <xref:System.ComponentModel.Composition.Primitives.ContractBasedImportDefinition.RequiredCreationPolicy> properties.
57
+
]]></format>
58
+
</remarks>
48
59
</Docs>
49
60
</Member>
50
61
<MemberMemberName=".ctor">
@@ -164,7 +175,14 @@
164
175
<Docs>
165
176
<summary>Gets an expression that defines conditions that must be matched to satisfy the import described by this import definition.</summary>
166
177
<value>An expression that contains a <seecref="T:System.Func`2" /> object that defines the conditions that must be matched for the <seecref="T:System.ComponentModel.Composition.Primitives.ImportDefinition" /> to be satisfied by an <seecref="T:System.ComponentModel.Composition.Primitives.Export" />.</value>
167
-
<remarks>To be added.</remarks>
178
+
<remarks>
179
+
<formattype="text/markdown"><![CDATA[
180
+
This property returns an expression that defines conditions based on the
<xref:System.ComponentModel.Composition.Primitives.ContractBasedImportDefinition.RequiredMetadata>, and <xref:System.ComponentModel.Composition.Primitives.ContractBasedImportDefinition.RequiredCreationPolicy>
183
+
properties.
184
+
]]></format>
185
+
</remarks>
168
186
</Docs>
169
187
</Member>
170
188
<MemberMemberName="IsConstraintSatisfiedBy">
@@ -190,7 +208,16 @@
190
208
<summary>Returns a value indicating whether the constraint represented by this object is satisfied by the export represented by the given export definition.</summary>
191
209
<returns>
192
210
<seelangword="true" /> if the constraint is satisfied; otherwise, <seelangword="false" />.</returns>
193
-
<remarks>To be added.</remarks>
211
+
<remarks>
212
+
<formattype="text/markdown"><![CDATA[
213
+
## Note to inheritors
214
+
215
+
Overrides of this method can provide a more optimized execution of the <xref:System.ComponentModel.Composition.Primitives.ContractBasedImportDefinition.Constraint> property, but the result should remain consistent.
216
+
]]></format>
217
+
</remarks>
218
+
<exceptioncref="T:System.ArgumentNullException">
219
+
<paramrefname="exportDefinition" /> is <seelangword="null" />.
Copy file name to clipboardExpand all lines: xml/System.ComponentModel.Composition.Primitives/Export.xml
+13-2
Original file line number
Diff line number
Diff line change
@@ -200,9 +200,17 @@
200
200
<Docs>
201
201
<summary>Returns the exported object the export provides.</summary>
202
202
<returns>The exported object the export provides.</returns>
203
-
<remarks>To be added.</remarks>
203
+
<remarks>
204
+
<formattype="text/markdown"><![CDATA[
205
+
## Note to inheritors
206
+
207
+
Overrides of this method should never return `null`.
208
+
]]></format>
209
+
</remarks>
204
210
<exceptioncref="T:System.NotImplementedException">The <seecref="M:System.ComponentModel.Composition.Primitives.Export.GetExportedValueCore" /> method was not overridden by a derived class.</exception>
205
211
<exceptioncref="T:System.ComponentModel.Composition.CompositionException">An error occurred during composition. <seecref="P:System.ComponentModel.Composition.CompositionException.Errors" /> will contain a collection of errors that occurred.</exception>
212
+
<exceptioncref="T:System.ComponentModel.Composition.CompositionContractMismatchException">The current instance is an instance of <seecref="T:System.Lazy`1" />, and the underlying exported value cannot be cast to <c>T</c>.
213
+
</exception>
206
214
</Docs>
207
215
</Member>
208
216
<MemberMemberName="Metadata">
@@ -255,7 +263,10 @@
255
263
<summary>Provides the object this export represents.</summary>
256
264
<value>The object this export represents.</value>
257
265
<remarks>To be added.</remarks>
266
+
<exceptioncref="T:System.ComponentModel.Composition.CompositionException">An error occurred during composition. <seecref="P:System.ComponentModel.Composition.CompositionException.Errors" /> will contain a collection of errors that occurred.</exception>
267
+
<exceptioncref="T:System.ComponentModel.Composition.CompositionContractMismatchException">The current instance is an instance of <seecref="T:System.Lazy`1" />, and the underlying exported value cannot be cast to <c>T</c>.</exception>
268
+
<exceptioncref="T:System.NotImplementedException">The <seecref="M:System.ComponentModel.Composition.Primitives.Export.GetExportedValueCore" /> method was not overridden by a derived class.</exception>
0 commit comments