Gets a model from the Store so that it can appear in the diagram view.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Protected Function GetDiagramFromPhysicalView ( _
diagramDomainClassId As Guid _
) As Diagram
'使用
Dim diagramDomainClassId As Guid
Dim returnValue As Diagram
returnValue = Me.GetDiagramFromPhysicalView(diagramDomainClassId)
protected Diagram GetDiagramFromPhysicalView(
Guid diagramDomainClassId
)
protected:
Diagram^ GetDiagramFromPhysicalView(
Guid diagramDomainClassId
)
protected function GetDiagramFromPhysicalView(
diagramDomainClassId : Guid
) : Diagram
Parameters
diagramDomainClassId
Type: System.GuidThe ID of the model that you want to retrieve.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.Diagram
The model.
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.