IVsPersistDocData2.SaveDocData(VSSAVEFLAGS, String, Int32) Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 -> intPublic Function SaveDocData (dwSave As VSSAVEFLAGS, ByRef pbstrMkDocumentNew As String, ByRef pfSaveCanceled As Integer) As IntegerParameters
- 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  
);