Entity.. Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Gets the validation errors for a specified property or for the entire entity.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

'Declaration
Private Function GetErrors ( _
    propertyName As String _
) As IEnumerable Implements INotifyDataErrorInfo.GetErrors
'Usage
Dim instance As Entity
Dim propertyName As String
Dim returnValue As IEnumerable

returnValue = CType(instance, INotifyDataErrorInfo).GetErrors(propertyName)
IEnumerable INotifyDataErrorInfo.GetErrors(
    string propertyName
)
private:
virtual IEnumerable^ GetErrors(
    String^ propertyName
) sealed = INotifyDataErrorInfo::GetErrors
private abstract GetErrors : 
        propertyName:string -> IEnumerable 
private override GetErrors : 
        propertyName:string -> IEnumerable 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

  • propertyName
    Type: System.String
    The name of the property to retrieve validation errors for; or nulla null reference (Nothing in Visual Basic) or Empty, to retrieve errors for the entire entity.

Return Value

Type: System.Collections.IEnumerable
The validation errors for the property or entity.

Implements

INotifyDataErrorInfoGetErrors(String)

Remarks

This member is an explicit interface member implementation. It can be used only when the Entity instance is cast to an INotifyDataErrorInfo interface.

See Also

Reference

Entity Class

System.ServiceModel.DomainServices.Client Namespace