IVsPersistDocData2::SaveDocData Method (VSSAVEFLAGS, String^, Int32)

 

Saves the document data.

Namespace:   Microsoft.VisualStudio.Shell.Interop
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::Int32

If 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
);
Return to top
Show: