Share via


BaseDocData.OnSaveDocData Method

Called when the file is to be saved.

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Common.UI
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Protected Overridable Function OnSaveDocData ( _
    dwSave As VSSAVEFLAGS, _
    <OutAttribute> ByRef pbstrMkDocumentNew As String, _
    <OutAttribute> ByRef piSaveCanceled As Integer _
) As Integer
'Usage
Dim dwSave As VSSAVEFLAGS
Dim pbstrMkDocumentNew As String
Dim piSaveCanceled As Integer
Dim returnValue As Integer

returnValue = Me.OnSaveDocData(dwSave, _
    pbstrMkDocumentNew, piSaveCanceled)
protected virtual int OnSaveDocData(
    VSSAVEFLAGS dwSave,
    out string pbstrMkDocumentNew,
    out int piSaveCanceled
)
protected:
virtual int OnSaveDocData(
    VSSAVEFLAGS dwSave, 
    [OutAttribute] String^% pbstrMkDocumentNew, 
    [OutAttribute] int% piSaveCanceled
)
protected function OnSaveDocData(
    dwSave : VSSAVEFLAGS, 
    pbstrMkDocumentNew : String, 
    piSaveCanceled : int
) : int
abstract OnSaveDocData : 
        dwSave:VSSAVEFLAGS * 
        pbstrMkDocumentNew:string * 
        piSaveCanceled:int -> int 
override OnSaveDocData : 
        dwSave:VSSAVEFLAGS * 
        pbstrMkDocumentNew:string * 
        piSaveCanceled:int -> int 

Parameters

  • pbstrMkDocumentNew
    Type: System.String%
    The document identifier
  • piSaveCanceled
    Type: System.Int32%
    Specifies whether the save is canceled

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

BaseDocData Class

BaseDocData Members

Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace