Share via


IPersistFileFormat.SaveCompleted(String) Method

Definition

Notifies the object that it has concluded the Save transaction and that the object can write to its file.

public:
 int SaveCompleted(System::String ^ pszFilename);
public:
 int SaveCompleted(Platform::String ^ pszFilename);
int SaveCompleted(std::wstring const & pszFilename);
public int SaveCompleted (string pszFilename);
abstract member SaveCompleted : string -> int
Public Function SaveCompleted (pszFilename As String) As Integer

Parameters

pszFilename
String

[in] Pointer to the file name.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From fpstfmt.idl:

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

This method is similar to IPersistFile.SaveCompletedThe save action is accomplished by notifying the object that it can revert from NoScribble mode, in which it must not write to its file, to Normal mode, in which it can write to its file. The component enters NoScribble mode when it receives an Save call.

Applies to