Share via


BaseDocData.OnSave Method

Called when the document is saving.

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 OnSave ( _
    fileName As String, _
    fRemember As Integer, _
    nFormatIndex As UInteger _
) As Integer
'Usage
Dim fileName As String
Dim fRemember As Integer
Dim nFormatIndex As UInteger
Dim returnValue As Integer

returnValue = Me.OnSave(fileName, _
    fRemember, nFormatIndex)
protected virtual int OnSave(
    string fileName,
    int fRemember,
    uint nFormatIndex
)
protected:
virtual int OnSave(
    String^ fileName, 
    int fRemember, 
    unsigned int nFormatIndex
)
protected function OnSave(
    fileName : String, 
    fRemember : int, 
    nFormatIndex : uint
) : int
abstract OnSave : 
        fileName:string * 
        fRemember:int * 
        nFormatIndex:uint32 -> int 
override OnSave : 
        fileName:string * 
        fRemember:int * 
        nFormatIndex:uint32 -> int 

Parameters

  • fRemember
    Type: System.Int32
    Specifies whether this is a save as action

Return Value

Type: System.Int32
Returns VSConstants.S_OK on success.

.NET Framework Security

See Also

Reference

BaseDocData Class

BaseDocData Members

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