다음을 통해 공유


DocData.CanSave Method

Verifies whether the user can cancel the save operation.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.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

See Also

Reference

DocData Class

Microsoft.VisualStudio.Modeling.Shell Namespace