Table of Contents

Method LooksLikeCompoundFile

Namespace
DocWright.Ole
Assembly
DocWright.Ole.dll

LooksLikeCompoundFile(Stream)

Determines whether a stream begins with the compound-file signature, which is what an OLE payload part normally is.

public static bool LooksLikeCompoundFile(Stream stream)

Parameters

stream Stream

The seekable stream to sniff. Its position is restored.

Returns

bool

true when the signature matches.

Exceptions

ArgumentNullException

stream is null.