Click or drag to resize
FileWriteAllBytes 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: CMS.AzureStorage
Assembly: CMS.AzureStorage (in CMS.AzureStorage.dll) Version: 11.0.0
Syntax
C#
public override void WriteAllBytes(
	string path,
	byte[] bytes
)

Parameters

path
Type: SystemString
Path to file.
bytes
Type: SystemByte
Bytes to write.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null
ArgumentExceptionpath is empty or contains invalid characters
PathTooLongExceptionpath is too long
See Also