Assigns a model element to the presentation element. The same effect as setting ModelElement.
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
声明
Public Sub Associate ( _
    element As ModelElement _
)
public void Associate(
    ModelElement element
)
public:
void Associate(
    ModelElement^ element
)
member Associate : 
        element:ModelElement -> unit 
public function Associate(
    element : ModelElement
)
Parameters
- element
 Type: Microsoft.VisualStudio.Modeling.ModelElement
 The model element.
.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.