Export (0) Print
Expand All

IStream.Write Method

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)

void Write(
	byte[] pv,
	int cb,
	IntPtr pcbWritten
)

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft