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 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'Declaration
Public Function QuerySaveFile ( _
    fileName As String, _
    querySaveFlags As tagVSQuerySaveFlags _
) As QuerySaveResult
'Usage
Dim instance As DocData 
Dim fileName As String 
Dim querySaveFlags As tagVSQuerySaveFlags 
Dim returnValue As QuerySaveResult 

returnValue = instance.QuerySaveFile(fileName, _
    querySaveFlags)
public QuerySaveResult QuerySaveFile(
    string fileName,
    tagVSQuerySaveFlags querySaveFlags
)
public:
QuerySaveResult QuerySaveFile(
    String^ fileName, 
    tagVSQuerySaveFlags querySaveFlags
)
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

DocData Members

QuerySaveFile Overload

Microsoft.VisualStudio.Modeling.Shell Namespace