CloseFileWriteStream Method (path, stream, attributes, lastWriteTime)

DTF API

Copy image CopyHover image
Deployment Tools Foundation CloseFileWriteStream Method (path, stream, attributes, lastWriteTime)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionArchiveFileStreamContextCloseFileWriteStream(String, Stream, FileAttributes, DateTime)
Closes a stream where an extracted file was written.
Declaration Syntax
C# Visual Basic Visual C++ F#
public virtual void CloseFileWriteStream(
	string path,
	Stream stream,
	FileAttributes attributes,
	DateTime lastWriteTime
)
Public Overridable Sub CloseFileWriteStream ( 
	path As String,
	stream As Stream,
	attributes As FileAttributes,
	lastWriteTime As DateTime
)
public:
virtual void CloseFileWriteStream(
	String^ path, 
	Stream^ stream, 
	FileAttributes attributes, 
	DateTime lastWriteTime
)
abstract CloseFileWriteStream : 
        path : string * 
        stream : Stream * 
        attributes : FileAttributes * 
        lastWriteTime : DateTime -> unit 
override CloseFileWriteStream : 
        path : string * 
        stream : Stream * 
        attributes : FileAttributes * 
        lastWriteTime : DateTime -> unit 
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
After closing the extracted file stream, this method applies the date and attributes to that file.

Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression.dll) Version: 3.0.0.0 (3.11.1.2318)