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.AzureStorageAssembly: CMS.AzureStorage (in CMS.AzureStorage.dll) Version: 13.0.131
Syntax public override void WriteAllBytes(
string path,
byte[] bytes
)
Parameters
- path
- Type: SystemString
Path to file. - bytes
- Type: SystemByte
Bytes to write.
Exceptions Exception | Condition |
---|
ArgumentNullException | path is null |
ArgumentException | path is empty or contains invalid characters |
PathTooLongException | path is too long |
See Also