ICachedType.BeforeSave Method
Called before the Visual Studio Tools for Office runtime persists the type into the document.
Namespace: Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly: Microsoft.VisualStudio.Tools.Applications.Runtime (in Microsoft.VisualStudio.Tools.Applications.Runtime.dll)
Syntax
'Declaration
Function BeforeSave As Boolean
bool BeforeSave()
Return Value
Type: System.Boolean
false if the state of the type should not be saved; otherwise, true.
.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.