XarArchive.Save

Save(string, XarSaveOptions)

Saves archive to 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.

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.

See Also