XarArchive.Save
Save(string, XarSaveOptions)
Saves archive to the destination file provided.
public void Save(string destinationFileName, XarSaveOptions saveOptions = null)
| Parameter | Type | Description |
|---|
| destinationFileName | String | The path of the archive to be created. If the specified file name points to an existing file, it will be overwritten. |
| saveOptions | XarSaveOptions | Options to save xar archive with. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | destinationFileName is null. |
| InvalidOperationException | Impossible to modify xar archive. |
| ObjectDisposedException | Archive has been disposed and cannot be used. |
| IOException | An I/O error occurred while opening the file. |
| PathTooLongException | The specified path, file name, or both exceed the system-defined maximum length. |
| UnauthorizedAccessException | destinationFileName specified a file that is read-only. -or- destinationFileName specified a directory. -or- The caller does not have the required permission. |
See Also
Save(Stream, XarSaveOptions)
Saves archive to the stream provided.
public void Save(Stream output, XarSaveOptions saveOptions = null)
| Parameter | Type | Description |
|---|
| output | Stream | Destination stream. |
| saveOptions | XarSaveOptions | Options to save xar archive with. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | output is null. |
| ArgumentException | outputIs not writable/readable or not seekable. |
| InvalidOperationException | Impossible to modify xar archive. |
| ObjectDisposedException | Archive has been disposed and cannot be used. |
See Also