EncoderStream Constructor
The EncoderStream constructor creates a new EncoderStream that uses encoder to encode or decode data as it is read from or written to stream, depending on the value of access.
Namespace: Microsoft.Exchange.Data.Mime.Encoders
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public Sub New ( _
stream As Stream, _
encoder As ByteEncoder, _
access As EncoderStreamAccess _
)
'Usage
Dim stream As Stream
Dim encoder As ByteEncoder
Dim access As EncoderStreamAccess
Dim instance As New EncoderStream(stream, _
encoder, access)
public EncoderStream(
Stream stream,
ByteEncoder encoder,
EncoderStreamAccess access
)
Parameters
- stream
Type: System.IO.Stream
The Stream object to read or write to.
- encoder
Type: Microsoft.Exchange.Data.Mime.Encoders.ByteEncoder
An object derived from ByteEncoder to use for encoding or decoding data as it is read or written.
- access
Type: Microsoft.Exchange.Data.Mime.Encoders.EncoderStreamAccess
An EncoderStreamAccess enumeration value specifying whether stream is to be read from or written to.