警报侦听器文件将被保存。
命名空间: Microsoft.VisualStudio.Modeling.Shell
程序集: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)
语法
声明
Public Overridable Function QuerySaveFile ( _
fileName As String, _
querySaveFlags As tagVSQuerySaveFlags _
) As QuerySaveResult
public virtual QuerySaveResult QuerySaveFile(
string fileName,
tagVSQuerySaveFlags querySaveFlags
)
参数
- fileName
类型:System.String
文档的文件名。
- querySaveFlags
类型:Microsoft.VisualStudio.Shell.Interop.tagVSQuerySaveFlags
控件的标志 IVsQueryEditQuerySave2 接口如何管理文件属性。默认值为 0。有关标志列表,请参见 tagVSQEQSFlags 枚举。
返回值
类型:Microsoft.VisualStudio.Modeling.Shell.QuerySaveResult
QuerySaveResult 对象。
备注
此方法调用 IVsQueryEditQuerySave2 接口。
此方法在文档执行一 QuerySaveFiles 调用。
此方法还可以查询附属文件。有关附属文件的更多信息,请参见 SubordinateFileHelper。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。