Share via


IInteropStreamContract.Write Method

This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.

Writes a specified number of bytes into the stream object starting at the current seek pointer.

Namespace:  Microsoft.VisualStudio.Tools.Applications.Contract
Assembly:  Microsoft.VisualStudio.Tools.Applications.Contract.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Contract.v9.0.dll)

Syntax

'Declaration
Sub Write ( _
    bytes As Byte(), _
    byteCount As Integer, _
    <OutAttribute> ByRef bytesWritten As Integer _
)
'Usage
Dim instance As IInteropStreamContract 
Dim bytes As Byte()
Dim byteCount As Integer 
Dim bytesWritten As Integer

instance.Write(bytes, byteCount, bytesWritten)
void Write(
    byte[] bytes,
    int byteCount,
    out int bytesWritten
)
void Write(
    array<unsigned char>^ bytes, 
    int byteCount, 
    [OutAttribute] int% bytesWritten
)
function Write(
    bytes : byte[], 
    byteCount : int, 
    bytesWritten : int
)

Parameters

  • bytes
    Type: array<System.Byte[]

    The buffer to write this stream to.

  • byteCount
    Type: System.Int32

    The number of bytes to write to the stream.

  • bytesWritten
    Type: System.Int32%

    On successful return, contains the actual number of bytes written to the stream object. If the caller sets this parameter to zero, this method does not provide the actual number of bytes written.

Remarks

Calls the IStream.Write method of the internal copy of the stream object.

See Also

Reference

IInteropStreamContract Interface

IInteropStreamContract Members

Microsoft.VisualStudio.Tools.Applications.Contract Namespace