FileServerExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods that combine all of the static file middleware components: Default files, directory browsing, send file, and static files
public ref class FileServerExtensions abstract sealed
public static class FileServerExtensions
type FileServerExtensions = class
Public Module FileServerExtensions
- Inheritance
-
FileServerExtensions
Methods
UseFileServer(IApplicationBuilder) |
Enable all static file middleware (except directory browsing) for the current request path in the current directory. |
UseFileServer(IApplicationBuilder, Boolean) |
Enable all static file middleware on for the current request path in the current directory. |
UseFileServer(IApplicationBuilder, FileServerOptions) |
Enable all static file middleware with the given options |
UseFileServer(IApplicationBuilder, String) |
Enables all static file middleware (except directory browsing) for the given request path from the directory of the same name |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for