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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。