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)

Syntax

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

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

Parameters

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) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

ValidationExtensionMethods Class

Microsoft.Data.Edm.Validation Namespace