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
fromElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe model element that caused a validation error in the model.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.