Language

ClientValidationProvider.RenderClientValidationRules メソッド

定義

フォームのレンダリングされたフィールドのクライアント側の検証規則をレンダリングする RenderFragment を返します。または、クライアント側の検証データが適用されない場合 (たとえば、サーバーでレンダリングされたフィールドが検証されない場合) に null します。

public abstract Microsoft.AspNetCore.Components.RenderFragment? RenderClientValidationRules(Microsoft.AspNetCore.Components.Forms.EditContext editContext, System.Collections.Generic.IReadOnlyDictionary<Microsoft.AspNetCore.Components.Forms.FieldIdentifier,string> renderedFields);
abstract member RenderClientValidationRules : Microsoft.AspNetCore.Components.Forms.EditContext * System.Collections.Generic.IReadOnlyDictionary<Microsoft.AspNetCore.Components.Forms.FieldIdentifier, string> -> Microsoft.AspNetCore.Components.RenderFragment
Public MustOverride Function RenderClientValidationRules (editContext As EditContext, renderedFields As IReadOnlyDictionary(Of FieldIdentifier, String)) As RenderFragment

パラメーター

editContext
EditContext

レンダリングされるフォームの EditContext 。

renderedFields
IReadOnlyDictionary<FieldIdentifier,String>

入力がレンダリングされたフィールドは、レンダリングされた HTML nameを値としてFieldIdentifierキーで指定します。 実装では、これらのフィールドに対してのみクライアント側のルールが構築されます。

戻り値

ルール マークアップを出力する RenderFragment 。レンダリングするものがない場合は null 。

適用対象