Share via


Write Method

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Overrides Sub Write ( _
    buffer As Byte(), _
    offset As Integer, _
    count As Integer _
)
'Usage
Dim instance As SpeechSynthesisConnector
Dim buffer As Byte()
Dim offset As Integer
Dim count As Integer

instance.Write(buffer, offset, count)
public override void Write(
    byte[] buffer,
    int offset,
    int count
)

Parameters

Remarks

Blocks until the data has been (almost) sent on the wire.

Exceptions

[T:System.ArgumentException]: Thrown when the sum of offset and count is larger than the buffer length.

[T:System.ArgumentOutOfRangeException]: Thrown when the offset or count is negative.

[T:System.ObjectDisposedException]: Thrown when the stream was already closed.

[T:System.ArgumentNullException]: Thrown when the buffer is null.

[T:System.InvalidOperationException]: Thrown when the connector isn't attached to a flow, isn't active, or has been suspended.

See Also

Reference

SpeechSynthesisConnector Class

SpeechSynthesisConnector Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace