Deployment Tools Foundation
CloseFileWriteStream Method (path, stream, attributes, lastWriteTime)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► IUnpackStreamContext ► CloseFileWriteStream(String, Stream, FileAttributes, DateTime)
Closes a stream where an extracted file was written.
Declaration Syntax
C# | Visual Basic | Visual C++ |
void CloseFileWriteStream( string path, Stream stream, FileAttributes attributes, DateTime lastWriteTime )
Sub CloseFileWriteStream ( _ path As String, _ stream As Stream, _ attributes As FileAttributes, _ lastWriteTime As DateTime _ )
void CloseFileWriteStream( String^ path, Stream^ stream, FileAttributes attributes, DateTime lastWriteTime )
Parameters
- path (String)
- The path of the file within the archive.
- stream (Stream)
- The stream that was previously returned by OpenFileWriteStream(String, Int64, DateTime) and is now ready to be closed.
- attributes (FileAttributes)
- The attributes of the extracted file.
- lastWriteTime (DateTime)
- The last write time of the file.
Remarks
The implementor may wish to apply the attributes and date to the newly-extracted file.