Show / Hide Table of Contents

Interface IValidationDictionary

サービス層とビューモデル層のデータ検証との間のインターフェイス。

Namespace: MakCraft.ViewModels.Validations
Assembly: MakViewModelBaseCore.dll
Syntax
public interface IValidationDictionary

Properties

| Improve this Doc View Source

IsValid

データ検証エラーの発生の有無を取得する。

Declaration
bool IsValid { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

AddError(String, String)

データ検証エラーメッセージを追加する。

Declaration
void AddError(string key, string errorMessage)
Parameters
Type Name Description
System.String key

プロパティ名

System.String errorMessage

エラーメッセージ

| Improve this Doc View Source

GetValidationError(String)

指定されたプロパティまたはエンティティ全体の検証エラーを取得します。

Declaration
IList<string> GetValidationError(string propertyName)
Parameters
Type Name Description
System.String propertyName

検証エラーを取得するプロパティの名前。または、エンティティ レベルのエラーを取得する場合は null または System.String.Empty

Returns
Type Description
System.Collections.Generic.IList<System.String>

プロパティまたはエンティティの検証エラー

| Improve this Doc View Source

RemoveErrorByKey(String)

propertyName に設定されているエラーメッセージを削除します。

Declaration
void RemoveErrorByKey(string propertyName)
Parameters
Type Name Description
System.String propertyName
  • Improve this Doc
  • View Source
Back to top Generated by DocFX