Constructors: NewCryptoStream |
Creates a new CryptoStream object used to read or write transformed data to or from an underlying stream.
Public Function NewCryptoStream( ByVal Stream As Stream, ByVal Transform As ICryptoTransform, ByVal Mode As CryptoStreamMode ) As CryptoStream
Exception | Condition |
---|---|
ArgumentNullException |
Stream is Nothing -or- Transform is Nothing |
ArgumentException |
Mode is ReadMode and Stream is not readable. -or- Mode is WriteMode and Stream is not writable. -or- Mode is invalid. |