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.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public void Write(
byte[] buffer,
int offset,
int count,
bool processSecurity
)
Public Sub Write (
buffer As Byte(),
offset As Integer,
count As Integer,
processSecurity As Boolean
)
public:
void Write(
array<unsigned char>^ buffer,
int offset,
int count,
bool processSecurity
)
member Write :
buffer : byte[] *
offset : int *
count : int *
processSecurity : bool -> unit
Parameters
- buffer
- Type: SystemByte
An array of bytes. This method copies count bytes from buffer to the current stream. - offset
- Type: SystemInt32
The zero-based byte offset in buffer at which to begin copying bytes to the current stream. - count
- Type: SystemInt32
The number of bytes to be written to the current stream. - processSecurity
- 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.
Exceptions See Also