Show / Hide Table of Contents

Interface IValidationDictionary

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

Inherited Members
System.Collections.Generic.IDictionary<System.String, System.Web.ModelBinding.ModelState>.ContainsKey(System.String)
System.Collections.Generic.IDictionary<System.String, System.Web.ModelBinding.ModelState>.Add(System.String, System.Web.ModelBinding.ModelState)
System.Collections.Generic.IDictionary<System.String, System.Web.ModelBinding.ModelState>.Remove(System.String)
System.Collections.Generic.IDictionary<System.String, System.Web.ModelBinding.ModelState>.TryGetValue(System.String, System.Web.ModelBinding.ModelState)
System.Collections.Generic.IDictionary<System.String, System.Web.ModelBinding.ModelState>.Item[System.String]
System.Collections.Generic.IDictionary<System.String, System.Web.ModelBinding.ModelState>.Keys
System.Collections.Generic.IDictionary<System.String, System.Web.ModelBinding.ModelState>.Values
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>>.Add(System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>)
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>>.Clear()
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>>.Contains(System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>)
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>>.CopyTo(System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>[], System.Int32)
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>>.Remove(System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>)
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>>.Count
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>>.IsReadOnly
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Web.ModelBinding.ModelState>>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()
Namespace: MakCraft.ViewModels
Assembly: MakViewModelsBase.dll
Syntax
public interface IValidationDictionary : IDictionary<string, ModelState>, ICollection<KeyValuePair<string, ModelState>>, IEnumerable<KeyValuePair<string, ModelState>>, IEnumerable

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)

propertyName に対するエラーメッセージを返します。エラーがない場合は null を返します。

Declaration
string GetValidationError(string propertyName)
Parameters
Type Name Description
System.String propertyName
Returns
Type Description
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