IStream.Write Method (Byte[], Int32, IntPtr)

 

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: