Freigeben über


DbMemberEntry<TEntity, TProperty>.GetValidationErrors-Methode

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Überprüft diese Eigenschaft.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")> _
Public Function GetValidationErrors As ICollection(Of DbValidationError)
'Usage
Dim instance As DbMemberEntry 
Dim returnValue As ICollection(Of DbValidationError)

returnValue = instance.GetValidationErrors()
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public ICollection<DbValidationError> GetValidationErrors()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate")]
public:
ICollection<DbValidationError^>^ GetValidationErrors()
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
member GetValidationErrors : unit -> ICollection<DbValidationError> 
public function GetValidationErrors() : ICollection<DbValidationError>

Rückgabewert

Typ: System.Collections.Generic.ICollection<DbValidationError>
Die Auflistung von DbValidationError-Objekten.Nie NULL.Wenn die Entität gültig ist, ist die Auflistung leer.

Siehe auch

Verweis

DbMemberEntry<TEntity, TProperty> Klasse

System.Data.Entity.Infrastructure-Namespace