IVsPersistDocData2.SaveDocData(VSSAVEFLAGS, String, Int32) Method

Definition

Saves the document data.

public:
 int SaveDocData(Microsoft::VisualStudio::Shell::Interop::VSSAVEFLAGS dwSave, [Runtime::InteropServices::Out] System::String ^ % pbstrMkDocumentNew, [Runtime::InteropServices::Out] int % pfSaveCanceled);
int SaveDocData(Microsoft::VisualStudio::Shell::Interop::VSSAVEFLAGS dwSave, [Runtime::InteropServices::Out] std::wstring const & & pbstrMkDocumentNew, [Runtime::InteropServices::Out] int & pfSaveCanceled);
public int SaveDocData (Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS dwSave, out string pbstrMkDocumentNew, out int pfSaveCanceled);
abstract member SaveDocData : Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS * string * int -> int
Public Function SaveDocData (dwSave As VSSAVEFLAGS, ByRef pbstrMkDocumentNew As String, ByRef pfSaveCanceled As Integer) As Integer

Parameters

dwSave
VSSAVEFLAGS

[in] Flags whose values are taken from the VSSAVEFLAGS enumeration.

pbstrMkDocumentNew
String

[out] Pointer to the path to the new document.

pfSaveCanceled
Int32

[out] true if the document was not saved.

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPersistDocData2::SaveDocData(  
   [in] VSSAVEFLAGS dwSave,  
   [out] BSTR *pbstrMkDocumentNew,  
   [out] BOOL *pfSaveCanceled  
);  

Applies to