Creates a new instance of the SecureNetworkStream class for the specified SecureSocket.
[Visual Basic]
Overloads Public Sub New( _
ByVal socket As SecureSocket, _
ByVal access As FileAccess, _
ByVal ownsSocket As Boolean _
)
Exception Type | Condition |
---|---|
ArgumentNullException | socket is a null reference (Nothing in Visual Basic). |
ArgumentException | socket is not connected -or- the SocketType property of socket is not SocketType.Stream. |
IOException | socket is a nonblocking socket. |
SecureNetworkStream Class | SecureNetworkStream Members | Org.Mentalis.Security.Ssl Namespace | SecureNetworkStream Constructor Overload List