EncoderStream.Write method
The Write method encodes or decodes data as it writes it to 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 Sub Write ( _
array As Byte(), _
offset As Integer, _
count As Integer _
)
'Usage
Dim instance As EncoderStream
Dim array As Byte()
Dim offset As Integer
Dim count As Integer
instance.Write(array, offset, count)
public override sealed void Write(
byte[] array,
int offset,
int count
)
Parameters
array
Type: []A byte array that contains the source data.
offset
Type: System.Int32An integer indicating where in array to begin reading data.
count
Type: System.Int32An integer indicating the number of bytes to attempt to write.
Exceptions
Exception | Condition |
---|---|
[System.NotSupportedException] | The stream does not support writing. |
[System.ArgumentException] | Length of array minus offset is less than count. |
[System.ArgumentNullException] | array is null. |
[System.ArgumentOutOfRangeException] | Either offset or count is negative, or the sum of offset and count is greater than the array length. |