InlineAttachmentExtractor.EnumerateMsoPackage

InlineAttachmentExtractor.EnumerateMsoPackage method

Enumerates the MSO package and returns a dictionary containing files data. The key is file identifier and value contains actual data.Files are usually referenced in message body using the identifiers provided.

public static IDictionary<string, byte[]> EnumerateMsoPackage(Stream stream)
ParameterTypeDescription
streamStreamThe stream to parse.

Return Value

Dictionary with files data.

Exceptions

exceptioncondition
ArgumentNullExceptionIf stream is null.
InvalidDataExceptionIf given stream has data in incorrect format.

Remarks

While in evaluation mode only one file is extracted from given MSO stream.

See Also