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 _
)
public override sealed void Write (
byte[] array,
int offset,
int count
)
public:
virtual void Write (
array<unsigned char>^ array,
int offset,
int count
) override sealed
public final void Write (
byte[] array,
int offset,
int count
)
public override final function Write (
array : byte[],
offset : int,
count : int
)
Parameters
- array
A byte array that contains the source data.
- offset
An integer indicating where in array to begin reading data.
- count
An integer indicating the number of bytes to attempt to write.
Exceptions
Exception type | 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. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,
Target Platforms
Windows Server 2003