IVsEditorFactoryNotify.NotifyItemRenamed 方法

调用的方法,当重命名文件。

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

语法

声明
Function NotifyItemRenamed ( _
    pHier As IVsHierarchy, _
    itemid As UInteger, _
    pszMkDocumentOld As String, _
    pszMkDocumentNew As String _
) As Integer
int NotifyItemRenamed(
    IVsHierarchy pHier,
    uint itemid,
    string pszMkDocumentOld,
    string pszMkDocumentNew
)

参数

  • pszMkDocumentOld
    类型:System.String
    [in] 对包含旧名称的字符串的指针。
  • pszMkDocumentNew
    类型:System.String
    [in] 到包含新名称的字符串的指针。

返回值

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

备注

COM 签名

从 vsshell.idl:

HRESULT IVsEditorFactoryNotify::NotifyItemRenamed(
   in] IVsHierarchy *pHier, 
   [in] VSITEMID itemid, 
   [in] LPCOLESTR pszMkDocumentOld, 
   [in] LPCOLESTR pszMkDocumentNew
);

.NET Framework 安全性

请参见

参考

IVsEditorFactoryNotify 接口

Microsoft.VisualStudio.Shell.Interop 命名空间