DesignSurfaceElementOperations.GetAssociatedModelElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.