ComplexObject.. 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.]
Retrieves the errors for the specified property, or the type-level errors if propertyName is nulla null reference (Nothing in Visual Basic) or empty.
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 ComplexObject
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 property name to get errors for. When nulla null reference (Nothing in Visual Basic) or empty, errors that apply to at the entity level will be returned.
Return Value
Type: System.Collections.IEnumerable
TheIEnumerable of errors for the specified propertyName or type-level errors when propertyName is nulla null reference (Nothing in Visual Basic) or empty..
Implements
INotifyDataErrorInfoGetErrors(String)