Write Method
Collapse the table of content
Expand the table of content

IStream.Write Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Sub Write ( _
	pv As Byte(), _
	cb As Integer, _
	pcbWritten As IntPtr _
)

Parameters

pv
Type: System.Byte ()
The buffer to write this stream to.
cb
Type: System.Int32
The number of bytes to write to the stream.
pcbWritten
Type: System.IntPtr
On successful return, contains the actual number of bytes written to the stream object. If the caller sets this pointer to Zero, this method does not provide the actual number of bytes written.

For more information, see the existing documentation for ISequentialStream::Write in the MSDN Library.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft