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
fileName
Type: System.StringThe file name of the document.
querySaveFlags
Type: Microsoft.VisualStudio.Shell.Interop.tagVSQuerySaveFlagsThe flags that control how the IVsQueryEditQuerySave2 interface manages file attributes. The default value is 0. For a list of flags, see the tagVSQEQSFlags enumeration.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.