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
- dwSave
Type: Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS
The save flags
- 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
- 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