Skip to content

Commit e4f3122

Browse files
carlossanlopRon Petrusha
authored andcommitted
Port System.ComponentModel.Composition source code comments to Docs (#2324)
* Port System.ComponentModel.Composition source code comments to Docs * Apply suggestions from code review Suggestions by rpetrusha Co-Authored-By: carlossanlop <[email protected]>
1 parent dc7289a commit e4f3122

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

xml/System.ComponentModel.Composition/AttributedModelServices.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,9 @@
745745
746746
]]></format>
747747
</remarks>
748+
<exception cref="T:System.ArgumentNullException"><paramref name="compositionService" /> or <paramref name="attributedPart" /> is <see langword="null" />.</exception>
749+
<exception cref="T:System.ComponentModel.Composition.CompositionException">An error occurred during composition. <see cref="P:System.ComponentModel.Composition.CompositionException.Errors" /> contains a collection of errors that occurred.</exception>
750+
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.ComponentModel.Composition.ICompositionService" /> has been disposed.</exception>
748751
</Docs>
749752
</Member>
750753
<Member MemberName="SatisfyImportsOnce">
@@ -776,7 +779,9 @@
776779
<remarks>To be added.</remarks>
777780
<exception cref="T:System.ArgumentNullException">
778781
<paramref name="reflectionContext" /> is <see langword="null" />.</exception>
782+
<exception cref="T:System.ComponentModel.Composition.CompositionException">An error occurred during composition. <see cref="P:System.ComponentModel.Composition.CompositionException.Errors" /> contains a collection of errors that occurred.</exception>
783+
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.ComponentModel.Composition.ICompositionService" /> has been disposed.</exception>
779784
</Docs>
780785
</Member>
781786
</Members>
782-
</Type>
787+
</Type>

xml/System.ComponentModel.Composition/CompositionContractMismatchException.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@
150150
]]></format>
151151
</remarks>
152152
<related type="Article" href="~/docs/standard/serialization/xml-and-soap-serialization.md">XML and Soap Serialization</related>
153+
<exception cref="T:System.ArgumentNullException"><paramref name="info" /> is <see langword="null" />.</exception>
154+
<exception cref="T:System.Runtime.Serialization.SerializationException"><paramref name="info" /> is missing a required value.</exception>
155+
<exception cref="T:System.InvalidCastException"><paramref name="info" /> contains a value that cannot be cast to the correct type.</exception>
153156
</Docs>
154157
</Member>
155158
<Member MemberName=".ctor">

xml/System.ComponentModel.Composition/CompositionException.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
<param name="errors">A collection of <see cref="T:System.ComponentModel.Composition.CompositionError" /> objects that represent problems during composition.</param>
8989
<summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Composition.CompositionException" /> class with the specified collection of composition errors.</summary>
9090
<remarks>To be added.</remarks>
91+
<exception cref="T:System.ArgumentException"><paramref name="errors" /> contains an element that is <see langword="null" />.</exception>
9192
</Docs>
9293
</Member>
9394
<Member MemberName=".ctor">

xml/System.ComponentModel.Composition/ICompositionService.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
<param name="part">The part to compose.</param>
4040
<summary>Composes the specified part, with recomposition and validation disabled.</summary>
4141
<remarks>To be added.</remarks>
42+
<exception cref="T:System.ArgumentNullException"><paramref name="part" /> is <see langword="null" />.</exception>
43+
<exception cref="T:System.ComponentModel.Composition.CompositionException">An error occurred during composition. <see cref="P:System.ComponentModel.Composition.CompositionException.Errors" /> contains a collection of errors that occurred.</exception>
44+
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.ComponentModel.Composition.ICompositionService" /> has been disposed.</exception>
4245
</Docs>
4346
</Member>
4447
</Members>
45-
</Type>
48+
</Type>

0 commit comments

Comments
 (0)