ValidationExtensionMethods.Errors Method

WCF Data Services 5.0

Gets the errors, if any, that belong to this element or elements that this element contains. For example errors for a structural type include the errors of the type itself and errors of its declared properties. The method does not analyze elements referenced by this element. For example errors of a property do not include errors from its type.

Namespace:  Microsoft.Data.Edm.Validation
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

public static IEnumerable<EdmError> Errors(
	this IEdmElement element
)

Parameters

element
Type: Microsoft.Data.Edm.IEdmElement
Reference to the calling object.

Return Value

Type: System.Collections.Generic.IEnumerable<EdmError>
Any errors that belong to this element or elements that element contains.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
Show: