Displays the diagram in the specified diagram view.
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 ( _
    diagramView As DiagramView _
)
public void Associate(
    DiagramView diagramView
)
public:
void Associate(
    DiagramView^ diagramView
)
member Associate : 
        diagramView:DiagramView -> unit 
public function Associate(
    diagramView : DiagramView
)
Parameters
- diagramView
 Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramView
 The diagram view.
Remarks
You can associate a diagram with more than one diagram view.
.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.