ValidationExtensionMethods.Errors Method

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)


<ExtensionAttribute> _
Public Shared Function Errors ( _
    element As IEdmElement _
) As IEnumerable(Of EdmError)
Dim element As IEdmElement 
Dim returnValue As IEnumerable(Of EdmError)

returnValue = element.Errors()
public static IEnumerable<EdmError> Errors(
    this IEdmElement element
static IEnumerable<EdmError^>^ Errors(
    IEdmElement^ element
static member Errors : 
        element:IEdmElement -> IEnumerable<EdmError> 
public static function Errors(
    element : IEdmElement
) : IEnumerable<EdmError>


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 or

See Also


ValidationExtensionMethods Class

Microsoft.Data.Edm.Validation Namespace