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
- fileName
Type: System.String
The file name of the document.
- querySaveFlags
Type: Microsoft.VisualStudio.Shell.Interop.tagVSQuerySaveFlags
The 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.