Opens a specific view for the document.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Overrides Sub OpenView ( _
logicalView As Guid, _
viewContext As Object _
)
'使用
Dim instance As ModelingDocData
Dim logicalView As Guid
Dim viewContext As Object
instance.OpenView(logicalView, viewContext)
public override void OpenView(
Guid logicalView,
Object viewContext
)
public:
virtual void OpenView(
Guid logicalView,
Object^ viewContext
) override
public override function OpenView(
logicalView : Guid,
viewContext : Object
)
Parameters
logicalView
Type: System.GuidThe view to open.
viewContext
Type: System.ObjectThe GUID that specifies the view to open. This GUID must match the value that is specified in the registry for the editor that supports this view.
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.