Compartir a través de


DesignSurfaceElementOperations.GetAssociatedModelElement Method

Definition

Gets the ProtoElement associated with the specified protoPresentationElement via the PresentationViewsSubject relationship.

public:
 static Microsoft::VisualStudio::Modeling::ProtoElementBase ^ GetAssociatedModelElement(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype, Microsoft::VisualStudio::Modeling::ProtoElementBase ^ protoPresentationElement);
public static Microsoft.VisualStudio.Modeling.ProtoElementBase GetAssociatedModelElement (Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype, Microsoft.VisualStudio.Modeling.ProtoElementBase protoPresentationElement);
static member GetAssociatedModelElement : Microsoft.VisualStudio.Modeling.ElementGroupPrototype * Microsoft.VisualStudio.Modeling.ProtoElementBase -> Microsoft.VisualStudio.Modeling.ProtoElementBase
Public Shared Function GetAssociatedModelElement (elementGroupPrototype As ElementGroupPrototype, protoPresentationElement As ProtoElementBase) As ProtoElementBase

Parameters

elementGroupPrototype
ElementGroupPrototype

The ElementGroupPrototype that contains the protoPresentationElement.

protoPresentationElement
ProtoElementBase

The ProtoElement corresponding to the PresentationElement.

Returns

The ProtoElement associated with the specified protoPresentationElement.

Applies to