[]
Opens the specified file and determines whether it meets the minimal requirements
to be considered a stream that contains an Excel workbook.
public bool IsExcelStream(Stream stream, ref ExcelWorkbookType workbookType)
Public Function IsExcelStream(stream As Stream, ByRef workbookType As ExcelWorkbookType) As Boolean
Type | Name | Description |
---|---|---|
Stream | stream | Stream |
ExcelWorkbookType | workbookType | Workbook type |
Type | Description |
---|---|
bool |
Type | Condition |
---|---|
ArgumentNullException | No stream specified or specified stream is null |
ArgumentException | No stream specified or specified stream is empty |
Opens the specified file and determines whether it meets the minimal requirements
to be considered an Excel-compatible stream.
public bool IsExcelStream(Stream stream)
Public Function IsExcelStream(stream As Stream) As Boolean
Type | Name | Description |
---|---|---|
Stream | stream | Stream |
Type | Description |
---|---|
bool | Boolean: true if it is an Excel stream; false otherwise |
Opens the specified file and determines whether it meets the minimal requirements
to be considered a stream that contains an Excel workbook.
public bool IsExcelStream(Stream stream, ref ExcelWorkbookType workbookType, out bool isEncrypt)
Public Function IsExcelStream(stream As Stream, ByRef workbookType As ExcelWorkbookType, ByRef isEncrypt As Boolean) As Boolean
Type | Name | Description |
---|---|---|
Stream | stream | Stream |
ExcelWorkbookType | workbookType | Workbook type |
bool | isEncrypt | isEncrypt |
Type | Description |
---|---|
bool |
Type | Condition |
---|---|
ArgumentNullException | No stream specified or specified stream is null |
ArgumentException | No stream specified or specified stream is empty |