MimeType

LoadOptions.MimeType property

Gets or sets the MIME type of the stream.

public string MimeType { get; set; }

Remarks

The MIME type helps identify the format of the document when the file extension is not available. Common MIME types include: - “application/msword” for DOC files - “application/vnd.openxmlformats-officedocument.wordprocessingml.document” for DOCX files - “application/vnd.ms-excel” for XLS files

Examples

The following example shows how to set a MIME type:

var streamInfo = new StreamInfo
{
    MimeType = "application/msword"
};

See Also