Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Verifies whether the user can cancel the save operation.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaration
Protected Overridable Function CanSave ( _
allowUserInterface As Boolean _
) As Boolean
protected virtual bool CanSave(
bool allowUserInterface
)
protected:
virtual bool CanSave(
bool allowUserInterface
)
abstract CanSave :
allowUserInterface:bool -> bool
override CanSave :
allowUserInterface:bool -> bool
protected function CanSave(
allowUserInterface : boolean
) : boolean
Parameters
- allowUserInterface
Type: System.Boolean
true 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.