Verifies whether the user can cancel the save operation.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'Declaration
Protected Overridable Function CanSave ( _
allowUserInterface As Boolean _
) As Boolean
'Usage
Dim allowUserInterface As Boolean
Dim returnValue As Boolean
returnValue = Me.CanSave(allowUserInterface)
protected virtual bool CanSave(
bool allowUserInterface
)
protected:
virtual bool CanSave(
bool allowUserInterface
)
protected function CanSave(
allowUserInterface : boolean
) : boolean
Parameters
allowUserInterface
Type: System.Booleantrue to let the user decide whether to save the document or cancel; false to automatically save the document.
Return Value
Type: System.Boolean
true if the user can cancel the save operation; otherwise, false.
.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.