Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Read method encodes or decodes data as it reads from the Stream object that this EncoderStream object owns.
Namespace: Microsoft.Exchange.Data.Mime.Encoders
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public Overrides NotOverridable Function Read ( _
array As Byte(), _
offset As Integer, _
count As Integer _
) As Integer
'Usage
Dim instance As EncoderStream
Dim array As Byte()
Dim offset As Integer
Dim count As Integer
Dim returnValue As Integer
returnValue = instance.Read(array, offset, _
count)
public override sealed int Read(
byte[] array,
int offset,
int count
)
Parameters
array
Type: []A byte array that will contain the read data.
offset
Type: System.Int32An integer indicating where in array to place the data.
count
Type: System.Int32An integer indicating the number of bytes to attempt to read.
Return value
Type: System.Int32
The Read method returns the total number of bytes read into the array.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | array was null. |
| NotSupportedException | The Stream that this EncoderStream object owns does not support reading. |
| ArgumentOutOfRangeException | The sum of offset and count is greater than the array length. |
| ArgumentOutOfRangeException | The sum of offset and count is less than zero. |