Skip to content

Add TryGetFileType method to MimeTypesDetection#832

Merged
dluc merged 2 commits intomicrosoft:mainfrom
tomasz-skarzynski:add-try-get-file-type-method
Oct 14, 2024
Merged

Add TryGetFileType method to MimeTypesDetection#832
dluc merged 2 commits intomicrosoft:mainfrom
tomasz-skarzynski:add-try-get-file-type-method

Conversation

@tomasz-skarzynski
Copy link
Copy Markdown
Contributor

Motivation and Context (Why the change? What's the scenario?)

TryGetFileType allows to check file type support before using ImportDocumentAsync, enabling a fallback to ImportTextAsync without relying on try-catch blocks.

Motivation: TryGetFileType allows developers to check file type support
before using ImportDocumentAsync, enabling a fallback to
ImportTextAsync without relying on try-catch blocks.
@dluc dluc merged commit 309347c into microsoft:main Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants