共用方式為


DocData.QuerySaveFile Method (String, tagVSQuerySaveFlags)

Alerts listeners that a file is about to be saved.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'宣告
Public Overridable Function QuerySaveFile ( _
    fileName As String, _
    querySaveFlags As tagVSQuerySaveFlags _
) As QuerySaveResult
public virtual QuerySaveResult QuerySaveFile(
    string fileName,
    tagVSQuerySaveFlags querySaveFlags
)
public:
virtual QuerySaveResult QuerySaveFile(
    String^ fileName, 
    tagVSQuerySaveFlags querySaveFlags
)
abstract QuerySaveFile : 
        fileName:string * 
        querySaveFlags:tagVSQuerySaveFlags -> QuerySaveResult 
override QuerySaveFile : 
        fileName:string * 
        querySaveFlags:tagVSQuerySaveFlags -> QuerySaveResult 
public function QuerySaveFile(
    fileName : String, 
    querySaveFlags : tagVSQuerySaveFlags
) : QuerySaveResult

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Shell.QuerySaveResult
The QuerySaveResult object.

Remarks

This method invokes the IVsQueryEditQuerySave2 interface.

This method performs a QuerySaveFiles call on the document.

This method queries subordinate files also. For more information about subordinate files, see SubordinateFileHelper.

.NET Framework Security

See Also

Reference

DocData Class

QuerySaveFile Overload

Microsoft.VisualStudio.Modeling.Shell Namespace