ClientValidationProvider.RenderClientValidationRules メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
フォームのレンダリングされたフィールドのクライアント側の検証規則をレンダリングする 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 。