StaticFilesEndpointRouteBuilderExtensions 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
包含用于将静态文件与终结点路由配合使用的扩展方法。
public ref class StaticFilesEndpointRouteBuilderExtensions abstract sealed
public static class StaticFilesEndpointRouteBuilderExtensions
type StaticFilesEndpointRouteBuilderExtensions = class
Public Module StaticFilesEndpointRouteBuilderExtensions
- 继承
-
StaticFilesEndpointRouteBuilderExtensions
方法
MapFallbackToFile(IEndpointRouteBuilder, String) |
向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 以匹配优先级最低的非文件名的请求。 请求将路由到尝试 StaticFileMiddleware 为 指定的文件提供服务的 |
MapFallbackToFile(IEndpointRouteBuilder, String, StaticFileOptions) |
向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 以匹配优先级最低的非文件名的请求。 请求将路由到尝试 StaticFileMiddleware 为 指定的文件提供服务的 |
MapFallbackToFile(IEndpointRouteBuilder, String, String) |
向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 以匹配优先级最低的非文件名的请求。 请求将路由到尝试 StaticFileMiddleware 为 指定的文件提供服务的 |
MapFallbackToFile(IEndpointRouteBuilder, String, String, StaticFileOptions) |
向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 以匹配优先级最低的非文件名的请求。 请求将路由到尝试 StaticFileMiddleware 为 指定的文件提供服务的 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈