ModelElementLocator.FindAndOpenDocView Method
Finds a ModelingDocView displaying this diagam. If the DocView cannot be found in already-opened views, then open the views on each candidate DocData. May return null.
This API is not CLS-compliant.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaración
<CLSCompliantAttribute(False)> _
Public Function FindAndOpenDocView ( _
logicalView As Guid, _
diagram As Diagram _
) As ModelingDocView
[CLSCompliantAttribute(false)]
public ModelingDocView FindAndOpenDocView(
Guid logicalView,
Diagram diagram
)
[CLSCompliantAttribute(false)]
public:
ModelingDocView^ FindAndOpenDocView(
Guid logicalView,
Diagram^ diagram
)
[<CLSCompliantAttribute(false)>]
member FindAndOpenDocView :
logicalView:Guid *
diagram:Diagram -> ModelingDocView
public function FindAndOpenDocView(
logicalView : Guid,
diagram : Diagram
) : ModelingDocView
Parameters
- logicalView
Type: System.Guid
ID of the diagram's logical view.
- diagram
Type: Microsoft.VisualStudio.Modeling.Diagrams.Diagram
Diagram for which a containing docData is needed.
Return Value
Type: Microsoft.VisualStudio.Modeling.Shell.ModelingDocView
.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.