Share via


IISServerOptions Class

Definition

Provides configuration for IIS In-Process.

public ref class IISServerOptions
public class IISServerOptions
type IISServerOptions = class
Public Class IISServerOptions
Inheritance
IISServerOptions

Constructors

IISServerOptions()

Properties

AllowSynchronousIO

Gets or sets a value that controls whether synchronous IO is allowed for the Request and Response

AuthenticationDisplayName

Sets the display name shown to users on login pages. The default is null.

AutomaticAuthentication

If true the server should set HttpContext.User. If false the server will only provide an identity when explicitly requested by the AuthenticationScheme. Note Windows Authentication must also be enabled in IIS for this to work.

MaxRequestBodyBufferSize

Gets or sets the maximum unconsumed incoming bytes the server will buffer for incoming request body.

MaxRequestBodySize

Gets or sets the maximum allowed size of any request body in bytes. When set to null, the maximum request length will not be restricted in ASP.NET Core. However, the IIS maxAllowedContentLength will still restrict content length requests (30,000,000 by default). This limit has no effect on upgraded connections which are always unlimited. This can be overridden per-request via IHttpMaxRequestBodySizeFeature.

Applies to