IsArchive Method (stream)

DTF API

Copy image CopyHover image
Deployment Tools Foundation IsArchive Method (stream)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.Compression.ZipZipEngineIsArchive(Stream)
Checks whether a Stream begins with a header that indicates it is a valid archive file.
Declaration Syntax
C# Visual Basic Visual C++ F#
public override bool IsArchive(
	Stream stream
)
Public Overrides Function IsArchive ( 
	stream As Stream
) As Boolean
public:
virtual bool IsArchive(
	Stream^ stream
) override
abstract IsArchive : 
        stream : Stream -> bool 
override IsArchive : 
        stream : Stream -> bool 
Parameters
stream (Stream)
Stream for reading the archive file.
Return Value
Boolean
True if the stream is a valid zip archive (with no offset); false otherwise.

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