Click or drag to resize
BackupFileStreamWrite Method (Byte, Int32, Int32, Boolean)
When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
public void Write(
	byte[] buffer,
	int offset,
	int count,
	bool processSecurity


Type: SystemByte
An array of bytes. This method copies count bytes from buffer to the current stream.
Type: SystemInt32
The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
Type: SystemInt32
The number of bytes to be written to the current stream.
Type: SystemBoolean
Specifies whether the function will restore the access-control list (ACL) data for the file or directory. If this is you need to specify TakeOwnership and ChangePermissions access when opening the file or directory handle. If the handle does not have those access rights, the operating system denies access to the ACL data, and ACL data restoration will not occur.
ArgumentExceptionThe sum of offset and count is greater than the buffer length.
ArgumentNullExceptionbuffer is .
ArgumentOutOfRangeExceptionoffset or count is negative.
NotSupportedExceptionThe stream does not support writing.
ObjectDisposedExceptionMethods were called after the stream was closed.
See Also