Extension

LoadOptions.Extension property

Gets or sets the file extension of the stream.

public string Extension { get; set; }

Remarks

The file extension is the primary way to identify the document format. Common extensions include: - “.docx” for Word documents - “.xlsx” for Excel spreadsheets - “.pdf” for PDF files

Examples

The following example shows how to set a file extension:

var streamInfo = new StreamInfo
{
    Extension = ".docx"
};

See Also