XarArchive.Save

Save(string, XarSaveOptions)

Saves archive to the destination file provided.

public void Save(string destinationFileName, XarSaveOptions saveOptions = null)
ParameterTypeDescription
destinationFileNameStringThe path of the archive to be created. If the specified file name points to an existing file, it will be overwritten.
saveOptionsXarSaveOptionsOptions to save xar archive with.

Exceptions

exceptioncondition
ArgumentNullExceptiondestinationFileName is null.
InvalidOperationExceptionImpossible to modify xar archive.
ObjectDisposedExceptionArchive has been disposed and cannot be used.
IOExceptionAn I/O error occurred while opening the file.
PathTooLongExceptionThe specified path, file name, or both exceed the system-defined maximum length.
UnauthorizedAccessExceptiondestinationFileName 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)
ParameterTypeDescription
outputStreamDestination stream.
saveOptionsXarSaveOptionsOptions to save xar archive with.

Exceptions

exceptioncondition
ArgumentNullExceptionoutput is null.
ArgumentExceptionoutputIs not writable/readable or not seekable.
InvalidOperationExceptionImpossible to modify xar archive.
ObjectDisposedExceptionArchive has been disposed and cannot be used.

See Also