Constructors: NewCryptoStream

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

Parameters

Stream
[ByVal] Stream. The stream on which to perform the cryptographic transformation.
Transform
[ByVal] ICryptoTransform. The cryptographic transformation that is to be performed on the stream.
Mode
[ByVal] CryptoStreamMode. One of the CryptoStreamMode values.

Return Values

CryptoStream -  Initializes a CryptoStream object.

Exceptions

ExceptionCondition
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.

See Also

Project CorLib Overview

Class Constructors Overview

CryptoStream