Share via


SpeechSynthesisConnector.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. Blocks until the data has been (almost) sent on the wire.

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

  • buffer
    Type: []
    An array of bytes. This method copies count bytes from buffer to the current stream.
  • offset
    Type: System.Int32
    The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
  • count
    Type: System.Int32
    The number of bytes to be written to the current stream.

Exceptions

Exception Condition
ArgumentException

Thrown when the sum of offset and count is larger than the buffer length.

ArgumentOutOfRangeException

Thrown when offset or count is negative.

ObjectDisposedException

Thrown when the stream was already closed.

ArgumentNullException

Thrown when buffer is null.

InvalidOperationException

Thrown when the connector is not attached to a flow, or is not active, or has been suspended.

EndOfStreamException

Thrown when the connector is stopped.

See Also

Reference

SpeechSynthesisConnector Class

SpeechSynthesisConnector Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace