ValidationContext.GetNavigationProxyModelElements Method

Gets the proxy model elements when a validation error occurs in the model.

Namespace:  Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'宣言
Public Overridable Function GetNavigationProxyModelElements ( _
    fromElement As ModelElement _
) As IEnumerable(Of ModelElement)
'使用
Dim instance As ValidationContext
Dim fromElement As ModelElement
Dim returnValue As IEnumerable(Of ModelElement)

returnValue = instance.GetNavigationProxyModelElements(fromElement)
public virtual IEnumerable<ModelElement> GetNavigationProxyModelElements(
    ModelElement fromElement
)
public:
virtual IEnumerable<ModelElement^>^ GetNavigationProxyModelElements(
    ModelElement^ fromElement
)
public function GetNavigationProxyModelElements(
    fromElement : ModelElement
) : IEnumerable<ModelElement>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ModelElement>

The proxy model elements.

Remarks

This method is used when presentation model elements are proxies to a model element that has caused a validation error in the model.

Permissions

See Also

Reference

ValidationContext Class

ValidationContext Members

Microsoft.VisualStudio.Modeling.Validation Namespace