IVsPersistDocData2::SaveDocData Method (VSSAVEFLAGS, String^, Int32)
Visual Studio 2015
Saves the document data.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int SaveDocData( VSSAVEFLAGS dwSave, [OutAttribute] String^% pbstrMkDocumentNew, [OutAttribute] int% pfSaveCanceled )
Parameters
- dwSave
-
Type:
Microsoft.VisualStudio.Shell.Interop::VSSAVEFLAGS
[in] Flags whose values are taken from the VSSAVEFLAGS enumeration.
- pbstrMkDocumentNew
-
Type:
System::String^
[out] Pointer to the path to the new document.
- pfSaveCanceled
-
Type:
System::Int32
[out] true if the document was not saved.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsPersistDocData2::SaveDocData(
[in] VSSAVEFLAGS dwSave,
[out] BSTR *pbstrMkDocumentNew,
[out] BOOL *pfSaveCanceled
);
Show: