Class Formats
Archive format routines
Inherited Members
Namespace: SharpSevenZip
Assembly: SharpSevenZip.dll
Syntax
public static class Formats
Methods
| Edit this page View SourceFormatByFileName(string, bool)
Gets InArchiveFormat for specified archive file name
Declaration
public static InArchiveFormat FormatByFileName(string fileName, bool reportErrors)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileName | Archive file name |
| bool | reportErrors | Indicates whether to throw exceptions |
Returns
| Type | Description |
|---|---|
| InArchiveFormat | InArchiveFormat recognized by the file name extension |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |