DocData.QuerySaveFile 方法 (String, tagVSQuerySaveFlags)

警告侦听器文件将要被保存。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

语法

声明
Public Overridable Function QuerySaveFile ( _
    fileName As String, _
    querySaveFlags As tagVSQuerySaveFlags _
) As QuerySaveResult
public virtual QuerySaveResult QuerySaveFile(
    string fileName,
    tagVSQuerySaveFlags querySaveFlags
)

参数

返回值

类型:Microsoft.VisualStudio.Modeling.Shell.QuerySaveResult
QuerySaveResult 对象。

备注

此方法调用 IVsQueryEditQuerySave2 接口。

此方法在文档执行一 QuerySaveFiles 调用。

此方法还可以查询附属文件。 有关以下内容的详细信息附属文件,请参见 SubordinateFileHelper

.NET Framework 安全性

请参阅

参考

DocData 类

QuerySaveFile 重载

Microsoft.VisualStudio.Modeling.Shell 命名空间