IISServerOptions 类
定义
提供 IIS 进程内的配置。
public ref class IISServerOptions
public class IISServerOptions
type IISServerOptions = class
Public Class IISServerOptions
- 继承
-
IISServerOptions
构造函数
IISServerOptions() |
属性
AllowSynchronousIO | |
AuthenticationDisplayName |
设置在登录页上向用户显示的显示名。 默认值为 NULL。 |
AutomaticAuthentication |
如果为 true,则服务器应该设置 Httpcontext.current。 如果为 false,则服务器将仅在 AuthenticationScheme 显式请求时提供标识。 请注意,为了使此功能正常工作,还必须在 IIS 中启用 Windows 身份验证。 |
MaxRequestBodySize |
获取或设置允许的任何请求正文的最大大小(以字节为单位)。 如果设置为 null,则不会限制 ASP.NET Core 中的最大请求长度。 但是,默认情况下,IIS maxAllowedContentLength 仍将限制 (30000000 的内容长度请求) 。 此限制对始终无限制的已升级连接没有影响。 可以通过按请求重写此项 IHttpMaxRequestBodySizeFeature 。 |