RequiredAttributeAdapter クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
public ref class RequiredAttributeAdapter sealed : Microsoft::AspNetCore::Mvc::DataAnnotations::AttributeAdapterBase<System::ComponentModel::DataAnnotations::RequiredAttribute ^>
public sealed class RequiredAttributeAdapter : Microsoft.AspNetCore.Mvc.DataAnnotations.AttributeAdapterBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
type RequiredAttributeAdapter = class
inherit AttributeAdapterBase<RequiredAttribute>
Public NotInheritable Class RequiredAttributeAdapter
Inherits AttributeAdapterBase(Of RequiredAttribute)
- 継承
-
RequiredAttributeAdapter
コンストラクター
RequiredAttributeAdapter(RequiredAttribute, IStringLocalizer) |
RequiredAttributeAdapter の新しいインスタンスを初期化します。 |
プロパティ
Attribute |
|
メソッド
AddValidation(ClientModelValidationContext) | |
GetErrorMessage(ModelMetadata, Object[]) |
を使用して書式設定されたエラー メッセージを取得します Attribute。 (継承元 ValidationAttributeAdapter<TAttribute>) |
GetErrorMessage(ModelValidationContextBase) |
エラー メッセージを取得します。 |
適用対象
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示