Share via


RazorComponentsServiceOptions 類別

定義

提供設定 Razor 元件伺服器端轉譯的選項。

public sealed class RazorComponentsServiceOptions
type RazorComponentsServiceOptions = class
Public NotInheritable Class RazorComponentsServiceOptions
繼承
RazorComponentsServiceOptions

建構函式

RazorComponentsServiceOptions()

提供設定 Razor 元件伺服器端轉譯的選項。

屬性

DetailedErrors

取得或設定值,判斷是否要包含錯誤的詳細資訊。

MaxFormMappingCollectionSize

取得或設定表單集合中允許的專案數目上限。

MaxFormMappingErrorCount

取得或設定對應表單資料時允許的錯誤數目上限。

MaxFormMappingKeySize

取得或設定用來讀取表單資料索引鍵的緩衝區大小上限。

MaxFormMappingRecursionDepth

取得或設定遞迴對應表單資料時允許的最大深度。

TemporaryRedirectionUrlValidityDuration

取得或設定 Blazor 伺服器端轉譯所發出之暫存重新導向 URL 的資料保護有效性存留期。 這些只會暫時使用,因此存留期只需要夠長,用戶端才能接收 URL 並開始流覽。 不過,它也應該夠長,以允許跨伺服器進行時鐘扭曲。

適用於