IDocumentListenerCallbackContract.OnBeforeSave Method
This API supports the Visual Studio Tools for Office infrastructure and is not intended to be used directly from your code.
Namespace: Microsoft.Office.Tools.Word.Contract
Assembly: Microsoft.VisualStudio.Tools.Office.Contract.v9.0 (in Microsoft.VisualStudio.Tools.Office.Contract.v9.0.dll)
Syntax
'Declaration
Sub OnBeforeSave ( _
ByRef saveAsUI As Boolean, _
ByRef cancel As Boolean _
)
'Usage
Dim instance As IDocumentListenerCallbackContract
Dim saveAsUI As Boolean
Dim cancel As Boolean
instance.OnBeforeSave(saveAsUI, cancel)
void OnBeforeSave(
ref bool saveAsUI,
ref bool cancel
)
Parameters
- saveAsUI
Type: System.Boolean%
- cancel
Type: System.Boolean%
.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
IDocumentListenerCallbackContract Interface