IISServerOptions 類別

定義

提供 IIS In-Process 的組態。

public ref class IISServerOptions
public class IISServerOptions
type IISServerOptions = class
Public Class IISServerOptions
繼承
IISServerOptions

建構函式

IISServerOptions()

提供 IIS In-Process 的組態。

屬性

AllowSynchronousIO

取得或設定值,這個值控制 是否允許 Request 和 的同步 IO Response

AuthenticationDisplayName

設定使用者在登入頁面上看到的顯示名稱。 預設值是 null。

AutomaticAuthentication

如果為 true,則伺服器應設定 HttpCoNtext.User。 如果為 false,伺服器只會在 AuthenticationScheme 明確要求時提供身分識別。 注意 Windows 驗證也必須在 IIS 中啟用,才能運作。

MaxRequestBodyBufferSize

取得或設定伺服器將緩衝傳入要求主體的未內送位元組上限。

MaxRequestBodySize

取得或設定任何要求主體的最大允許大小,以位元組為單位。 當設定為 null 時,ASP.NET Core中將不會限制最大要求長度。 不過,根據預設,IIS maxAllowedContentLength 仍會限制 (30,000,000 的內容長度要求) 。 此限制不會影響一律無限制的升級連線。 這可以透過 IHttpMaxRequestBodySizeFeature 覆寫每個要求。

適用於