IVsUIShellOpenDocument.MapLogicalView 方法

映射一个物理视图到逻辑视图。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function MapLogicalView ( _
    ByRef rguidEditorType As Guid, _
    ByRef rguidLogicalView As Guid, _
    <OutAttribute> ByRef pbstrPhysicalView As String _
) As Integer
int MapLogicalView(
    ref Guid rguidEditorType,
    ref Guid rguidLogicalView,
    out string pbstrPhysicalView
)

参数

  • rguidEditorType
    类型:System.Guid%
    [in] 编辑类型的唯一标识符。
  • rguidLogicalView
    类型:System.Guid%
    [in] 逻辑视图的 GUID。有关逻辑视图 GUID 列表,请参见逻辑视图和物理视图。
  • pbstrPhysicalView
    类型:System.String%
    [out, retval] 对物理视图的指针。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell.idl:

HRESULT IVsUIShellOpenDocument::MapLogicalView(
   [in] REFGUID rguidEditorType,
   [in] REFGUID rguidLogicalView,
   [out, retval] BSTR *pbstrPhysicalView
);

.NET Framework 安全性

请参见

参考

IVsUIShellOpenDocument 接口

Microsoft.VisualStudio.Shell.Interop 命名空间