Freigeben über


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)

Syntax

'Declaration
Function SaveDocData ( _
    dwSave As VSSAVEFLAGS, _
    <OutAttribute> ByRef pbstrMkDocumentNew As String, _
    <OutAttribute> ByRef pfSaveCanceled As Integer _
) As Integer
'Usage
Dim instance As IVsPersistDocData2
Dim dwSave As VSSAVEFLAGS
Dim pbstrMkDocumentNew As String
Dim pfSaveCanceled As Integer
Dim returnValue As Integer

returnValue = instance.SaveDocData(dwSave, _
    pbstrMkDocumentNew, pfSaveCanceled)
int SaveDocData(
    VSSAVEFLAGS dwSave,
    out string pbstrMkDocumentNew,
    out int pfSaveCanceled
)
int SaveDocData(
    [InAttribute] VSSAVEFLAGS dwSave, 
    [OutAttribute] String^% pbstrMkDocumentNew, 
    [OutAttribute] int% pfSaveCanceled
)
abstract SaveDocData : 
        dwSave:VSSAVEFLAGS * 
        pbstrMkDocumentNew:string byref * 
        pfSaveCanceled:int byref -> int 
function SaveDocData(
    dwSave : VSSAVEFLAGS, 
    pbstrMkDocumentNew : String, 
    pfSaveCanceled : int
) : int

Parameters

  • 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.

Implements

IVsPersistDocData.SaveDocData(VSSAVEFLAGS, String%, Int32%)

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsPersistDocData2 Interface

IVsPersistDocData2 Members

SaveDocData Overload

Microsoft.VisualStudio.Shell.Interop Namespace