Skip to content

Commit d024b04

Browse files
carlossanlopRon Petrusha
andcommitted
Document System.Runtime.AmbiguousImplementationException (#2796)
* Document System.Runtime.AmbiguousImplementationException * suggestions by bartonjs Co-Authored-By: Jeremy Barton <[email protected]> * remark suggested by MichalStrehovsky * suggestions by rpetrusha Co-Authored-By: Ron Petrusha <[email protected]>
1 parent 06cac58 commit d024b04

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

xml/System.Runtime/AmbiguousImplementationException.xml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,20 @@
1414
</Base>
1515
<Interfaces />
1616
<Docs>
17-
<summary>To be added.</summary>
18-
<remarks>To be added.</remarks>
17+
<summary>The exception that is thrown when there are multiple incompatible interface methods overriding another method.</summary>
18+
<remarks>
19+
<format type="text/markdown"><![CDATA[
20+
21+
## Remarks
22+
23+
Normally, a compilation error is generated if there are multiple incompatible interface methods implementing another interface method. `AmbiguousImplementationException` is thrown when a type in a dependent assembly implements an interface from an assembly that was modified.
24+
25+
To resolve the error, the most specific implementation of the interface method has to be provided. The most specific implementation of the interface method can be provided on the class that implements the interface, or on another interface that requires the interface providing the conflicting implementation.
26+
27+
`AmbiguousImplementationException` uses the `HRESULT COR_E_AMBIGUOUSIMPLEMENTATION`, which has a value of `0x8013106A`.
28+
29+
]]></format>
30+
</remarks>
1931
</Docs>
2032
<Members>
2133
<Member MemberName=".ctor">
@@ -31,7 +43,7 @@
3143
</AssemblyInfo>
3244
<Parameters />
3345
<Docs>
34-
<summary>To be added.</summary>
46+
<summary>Initializes a new instance of the <see cref="T:System.Runtime.AmbiguousImplementationException" /> class.</summary>
3547
<remarks>To be added.</remarks>
3648
</Docs>
3749
</Member>
@@ -51,8 +63,8 @@
5163
<Parameter Name="message" Type="System.String" />
5264
</Parameters>
5365
<Docs>
54-
<param name="message">To be added.</param>
55-
<summary>To be added.</summary>
66+
<param name="message">The localized error message string.</param>
67+
<summary>Initializes a new instance of the <see cref="T:System.Runtime.AmbiguousImplementationException" /> class with a specified error message.</summary>
5668
<remarks>To be added.</remarks>
5769
</Docs>
5870
</Member>
@@ -73,11 +85,11 @@
7385
<Parameter Name="innerException" Type="System.Exception" />
7486
</Parameters>
7587
<Docs>
76-
<param name="message">To be added.</param>
77-
<param name="innerException">To be added.</param>
78-
<summary>To be added.</summary>
88+
<param name="message">A string that describes the error.</param>
89+
<param name="innerException">The exception that is the cause of the current exception.</param>
90+
<summary>Initializes a new instance of the <see cref="T:System.Runtime.AmbiguousImplementationException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
7991
<remarks>To be added.</remarks>
8092
</Docs>
8193
</Member>
8294
</Members>
83-
</Type>
95+
</Type>

0 commit comments

Comments
 (0)