Deployment Tools Foundation
CloseArchiveWriteStream Method (archiveNumber, archiveName, stream)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► IPackStreamContext ► CloseArchiveWriteStream(Int32, String, Stream)
Closes a stream where an archive package was written.

C# | Visual Basic | Visual C++ |

- archiveNumber (Int32)
- The 0-based index of the archive within the chain.
- archiveName (String)
- The name of the archive that was previously returned by GetArchiveName(Int32).
- stream (Stream)
- A stream that was previously returned by OpenArchiveWriteStream(Int32, String, Boolean, CompressionEngine) and is now ready to be closed.

If there is another archive package in the chain, then after this stream
is closed a new stream will be opened.