IPersistFileFormat.SaveCompleted 方法

通知对象可以推断保存事务,并且对象可以写入它的文件。

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

语法

声明
Function SaveCompleted ( _
    pszFilename As String _
) As Integer
int SaveCompleted(
    string pszFilename
)

参数

  • pszFilename
    类型:System.String
    [in] 对文件名的指针。

返回值

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

备注

COM 签名

从 fpstfmt.idl:

HRESULT IPersistFileFormat::SaveCompleted(
   [in] LPCOLESTR pszFilename
);

此方法类似于保存操作通过通知对象完成的 IPersistFile.SaveCompleted它只能在 NoScribble 模式还原,它无法写入其文件,对常规模式,则它可以写入它的文件。,在收到 Save 调用时,元素输入 NoScribble 模式。

.NET Framework 安全性

请参见

参考

IPersistFileFormat 接口

Microsoft.VisualStudio.Shell.Interop 命名空间