Click or drag to resize

SftpClientWriteAllBytes Method

Creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is overwritten.

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public void WriteAllBytes(
	string path,
	byte[] bytes
)

Parameters

path  String
The file to write to.
bytes  Byte
The bytes to write to the file.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also