Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Shared Function GetAssociatedModelElement ( _
elementGroupPrototype As ElementGroupPrototype, _
protoPresentationElement As ProtoElementBase _
) As ProtoElementBase
'使用
Dim elementGroupPrototype As ElementGroupPrototype
Dim protoPresentationElement As ProtoElementBase
Dim returnValue As ProtoElementBase
returnValue = DesignSurfaceElementOperations.GetAssociatedModelElement(elementGroupPrototype, _
protoPresentationElement)
public static ProtoElementBase GetAssociatedModelElement(
ElementGroupPrototype elementGroupPrototype,
ProtoElementBase protoPresentationElement
)
public:
static ProtoElementBase^ GetAssociatedModelElement(
ElementGroupPrototype^ elementGroupPrototype,
ProtoElementBase^ protoPresentationElement
)
public static function GetAssociatedModelElement(
elementGroupPrototype : ElementGroupPrototype,
protoPresentationElement : ProtoElementBase
) : ProtoElementBase
Parameters
- elementGroupPrototype
Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
- protoPresentationElement
Type: Microsoft.VisualStudio.Modeling.ProtoElementBase
Return Value
Type: Microsoft.VisualStudio.Modeling.ProtoElementBase
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.
See Also
Reference
DesignSurfaceElementOperations Class