DocData.QueryEditFile Method (String, tagVSQueryEditFlags)

Alerts listeners that a document is about to be edited. Listeners can vote against the edit.

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

Syntax

'Declaração
Public Overridable Function QueryEditFile ( _
    fileName As String, _
    vsQueryEditFlags As tagVSQueryEditFlags _
) As QueryEditResult
public virtual QueryEditResult QueryEditFile(
    string fileName,
    tagVSQueryEditFlags vsQueryEditFlags
)
public:
virtual QueryEditResult QueryEditFile(
    String^ fileName, 
    tagVSQueryEditFlags vsQueryEditFlags
)
abstract QueryEditFile : 
        fileName:string * 
        vsQueryEditFlags:tagVSQueryEditFlags -> QueryEditResult 
override QueryEditFile : 
        fileName:string * 
        vsQueryEditFlags:tagVSQueryEditFlags -> QueryEditResult 
public function QueryEditFile(
    fileName : String, 
    vsQueryEditFlags : tagVSQueryEditFlags
) : QueryEditResult

Parameters

Return Value

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

Remarks

This method invokes the IVsQueryEditQuerySave2 interface.

This method performs a QueryEditFiles 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

QueryEditFile Overload

Microsoft.VisualStudio.Modeling.Shell Namespace