Skip to content

Commit ed70cbd

Browse files
authored
Automatic port of System.Net exceptions (dotnet#4661)
Co-authored-by: carlossanlop <[email protected]>
1 parent c4f6537 commit ed70cbd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

xml/System.Net.Sockets/Socket.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Type Name="Socket" FullName="System.Net.Sockets.Socket">
1+
<Type Name="Socket" FullName="System.Net.Sockets.Socket">
22
<TypeSignature Language="C#" Value="public class Socket : IDisposable" />
33
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit Socket extends System.Object implements class System.IDisposable" FrameworkAlternate="dotnet-uwp-10.0;net-5.0;netcore-1.0;netcore-1.1;netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netcore-3.1;netframework-1.1;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netstandard-1.3;netstandard-1.4;netstandard-1.6;netstandard-2.0;netstandard-2.1" />
44
<TypeSignature Language="DocId" Value="T:System.Net.Sockets.Socket" />
@@ -146,6 +146,12 @@ This method populates the <xref:System.Net.Sockets.Socket> instance with data ga
146146

147147
]]></format>
148148
</remarks>
149+
<exception cref="T:System.ArgumentNullException">
150+
<paramref name="handle" /> is <see langword="null" />.</exception>
151+
<exception cref="T:System.ArgumentException">
152+
<paramref name="handle" /> is invalid.</exception>
153+
<exception cref="T:System.Net.Sockets.SocketException">
154+
<paramref name="handle" /> is not a socket or information about the socket could not be accessed.</exception>
149155
</Docs>
150156
</Member>
151157
<Member MemberName=".ctor">
@@ -5659,6 +5665,8 @@ In general, the `GetSocketOption` method should be used whenever getting a <xref
56595665

56605666
]]></format>
56615667
</remarks>
5668+
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
5669+
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
56625670
</Docs>
56635671
</Member>
56645672
<MemberGroup MemberName="GetSocketOption">
@@ -10983,6 +10991,8 @@ The <xref:System.Net.Sockets.Socket.SetRawSocketOption(System.Int32,System.Int32
1098310991

1098410992
]]></format>
1098510993
</remarks>
10994+
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
10995+
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
1098610996
</Docs>
1098710997
</Member>
1098810998
<MemberGroup MemberName="SetSocketOption">

0 commit comments

Comments
 (0)