Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IISServerOptions Class

Definition

Namespace:
Microsoft.AspNetCore.Builder
Assembly:
Microsoft.AspNetCore.Server.IIS.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Server.IIS v2.2.0
Package:
Microsoft.AspNetCore.App.Ref v3.0.1
Package:
Microsoft.AspNetCore.App.Ref v3.1.10
Package:
Microsoft.AspNetCore.App.Ref v5.0.0
Package:
Microsoft.AspNetCore.App.Ref v6.0.36
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.19
Package:
Microsoft.AspNetCore.App.Ref v9.0.8
Source:
IISServerOptions.cs

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.

Provides configuration for IIS In-Process.

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

Constructors

Name Description
IISServerOptions()

Properties

Name Description
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


Feedback

Was this page helpful?