SetOutputStream Method

Sets the stream to which output data should be written.

Syntax

public void SetOutputStream(System.IO.Stream outputStream);
Public Sub SetOutputStream(ByVal OutputStream As System.IO.Stream)

Remarks

This method sets the stream to which data output from a successful cryptographic operation should be written.

Passing a non-null value for OutputStream will cause the OutputFile property to be cleared. Similarly, setting OutputFile to a non-empty value will discard any stream set using this method.

Input Sources & Output Destinations

The component automatically determines the source and destination of the input and output based on which properties are set.

The order in which the input properties are checked is as follows:

  1. An input stream supplied via the SetInputStream method
  2. The InputFile property
  3. The InputData property

The first valid input source found is used. The order in which the output properties are considered is as follows:

  1. An output stream supplied via the SetOutputStream method
  2. The OutputFile property
  3. The OutputData property

Copyright (c) 2022 /n software inc. - All rights reserved.
Cloud Keys 2020 .NET Edition - Version 20.0 [Build 8157]