DocData.CanSave Method
Verifies whether the user can cancel the save operation.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.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: Booleantrue to let the user decide whether to save the document or cancel; false to automatically save the document.
Return Value
Type: 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.