DesignSurfaceElementOperations.GetAssociatedModelElement Method
Gets the ProtoElement associated with the specified protoPresentationElement via the PresentationViewsSubject relationship.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Shared Function GetAssociatedModelElement ( _
elementGroupPrototype As ElementGroupPrototype, _
protoPresentationElement As ProtoElementBase _
) As ProtoElementBase
public static ProtoElementBase GetAssociatedModelElement(
ElementGroupPrototype elementGroupPrototype,
ProtoElementBase protoPresentationElement
)
public:
static ProtoElementBase^ GetAssociatedModelElement(
ElementGroupPrototype^ elementGroupPrototype,
ProtoElementBase^ protoPresentationElement
)
static member GetAssociatedModelElement :
elementGroupPrototype:ElementGroupPrototype *
protoPresentationElement:ProtoElementBase -> ProtoElementBase
public static function GetAssociatedModelElement(
elementGroupPrototype : ElementGroupPrototype,
protoPresentationElement : ProtoElementBase
) : ProtoElementBase
Parameters
elementGroupPrototype
Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototypeThe ElementGroupPrototype that contains the protoPresentationElement.
protoPresentationElement
Type: Microsoft.VisualStudio.Modeling.ProtoElementBaseThe ProtoElement corresponding to the PresentationElement.
Return Value
Type: Microsoft.VisualStudio.Modeling.ProtoElementBase
.NET Framework Security
- 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.