Udostępnij za pośrednictwem


IVsPersistDocData.SaveDocData Method

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

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsPersistDocData Interface

Microsoft.VisualStudio.Shell.Interop Namespace