共用方式為


DocData.CanSave 方法

確認使用者是否可以取消儲存作業。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Protected Overridable Function CanSave ( _
    allowUserInterface As Boolean _
) As Boolean
protected virtual bool CanSave(
    bool allowUserInterface
)

參數

  • allowUserInterface
    型別:System.Boolean
    為 true,可讓使用者決定是否要儲存的文件或 [取消]。 為 false 則會自動儲存文件。

傳回值

型別:System.Boolean
true 如果使用者可以直接取消儲存作業。 否則,false。

.NET Framework 安全性

請參閱

參考

DocData 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間