Skip to content

Commit 853050b

Browse files
committed
Add exception docs to SslStream constructor
1 parent 2847510 commit 853050b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎nanoFramework.System.Net/Security/SslStream.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ public class SslStream : NetworkStream
4747
/// Initializes a new instance of the SslStream class using the specified Socket.
4848
/// </summary>
4949
/// <param name="socket">A valid socket that currently has a TCP connection.</param>
50+
/// <exception cref="ArgumentNullException"><paramref name="socket"/> is <see langword="null"/>.</exception>
51+
/// <exception cref="IOException"><paramref name="socket"/> is not connected. -or- The <see cref="Socket.SocketType"/> property of <paramref name="socket"/> is not <see cref="SocketType.Stream"/>.</exception>
5052
/// <remarks>
5153
/// The SslStream maintains the lifetime of the socket. When the SslStream object is disposed,
5254
/// the underlying TCP socket will be closed.

0 commit comments

Comments
 (0)