Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the ProtoElement associated with the specified protoPresentationElement via the PresentationViewsSubject relationship.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.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.ElementGroupPrototype
The ElementGroupPrototype that contains the protoPresentationElement.
- protoPresentationElement
Type: Microsoft.VisualStudio.Modeling.ProtoElementBase
The 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.