from_extension method
Leave feedback
On this page
Maps file extension to file type.
When file type is supported returns it, otherwise returns default FileType.Unknown file type.
def from_extension(self, extension):
...
| Parameter | Type | Description |
|---|---|---|
| extension | System.String | File extension (including the period “.”). |
| Exception | Description |
|---|---|
| ArgumentException | Thrown when extension is null or empty string. |
- module
groupdocs.parser.options - class
FileType
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.