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
- fileName
Type: System.String
The file name
- fRemember
Type: System.Int32
Specifies whether this is a save as action
- nFormatIndex
Type: System.UInt32
The format index
Return Value
Type: System.Int32
Returns VSConstants.S_OK on success.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace