Files
2026-04-10 22:50:51 +02:00

41 lines
1.6 KiB
C#

using System;
using System.Collections;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Defines members that data entity classes can implement to provide custom synchronous and asynchronous validation support.</summary>
// Token: 0x0200013D RID: 317
[Token(Token = "0x200013D")]
public interface INotifyDataErrorInfo
{
/// <summary>Gets a value that indicates whether the entity has validation errors.</summary>
/// <returns>
/// <see langword="true" /> if the entity currently has validation errors; otherwise, <see langword="false" />.</returns>
// Token: 0x17000174 RID: 372
// (get) Token: 0x060007D4 RID: 2004
[Token(Token = "0x17000174")]
bool HasErrors
{
[Token(Token = "0x60007D4")]
[Address(Slot = "0")]
get;
}
/// <summary>Gets the validation errors for a specified property or for the entire entity.</summary>
/// <param name="propertyName">The name of the property to retrieve validation errors for; or <see langword="null" /> or <see cref="F:System.String.Empty" />, to retrieve entity-level errors.</param>
/// <returns>The validation errors for the property or entity.</returns>
// Token: 0x060007D5 RID: 2005
[Token(Token = "0x60007D5")]
[Address(Slot = "1")]
IEnumerable GetErrors(string propertyName);
/// <summary>Occurs when the validation errors have changed for a property or for the entire entity.</summary>
// Token: 0x1400000A RID: 10
// (add) Token: 0x060007D6 RID: 2006
// (remove) Token: 0x060007D7 RID: 2007
[Token(Token = "0x1400000A")]
event EventHandler<DataErrorsChangedEventArgs> ErrorsChanged;
}
}