Assigns a model element to the presentation element.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Sub Associate ( _
element As ModelElement _
)
'使用
Dim instance As PresentationElement
Dim element As ModelElement
instance.Associate(element)
public void Associate(
ModelElement element
)
public:
void Associate(
ModelElement^ element
)
public function Associate(
element : ModelElement
)
Parameters
element
Type: Microsoft.VisualStudio.Modeling.ModelElementThe model element.
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.