Compartilhar via


IVsQueryEditQuerySave3.QuerySaveFile2 Method

Definition

Notifies the environment that a file is about to be saved.

public:
 int QuerySaveFile2(System::String ^ pszMkDocument, cli::array <System::UInt32> ^ rgf, cli::array <Microsoft::VisualStudio::Shell::Interop::VSQEQS_FILE_ATTRIBUTE_DATA> ^ pFileInfo, [Runtime::InteropServices::Out] System::UInt32 % pdwQSResult, [Runtime::InteropServices::Out] System::UInt32 % prgfMoreInfo);
int QuerySaveFile2(std::wstring const & pszMkDocument, std::Array <unsigned int> const & rgf, std::Array <Microsoft::VisualStudio::Shell::Interop::VSQEQS_FILE_ATTRIBUTE_DATA> const & pFileInfo, [Runtime::InteropServices::Out] unsigned int & pdwQSResult, [Runtime::InteropServices::Out] unsigned int & prgfMoreInfo);
public int QuerySaveFile2 (string pszMkDocument, uint[] rgf, Microsoft.VisualStudio.Shell.Interop.VSQEQS_FILE_ATTRIBUTE_DATA[] pFileInfo, out uint pdwQSResult, out uint prgfMoreInfo);
abstract member QuerySaveFile2 : string * uint32[] * Microsoft.VisualStudio.Shell.Interop.VSQEQS_FILE_ATTRIBUTE_DATA[] * uint32 * uint32 -> int
Public Function QuerySaveFile2 (pszMkDocument As String, rgf As UInteger(), pFileInfo As VSQEQS_FILE_ATTRIBUTE_DATA(), ByRef pdwQSResult As UInteger, ByRef prgfMoreInfo As UInteger) As Integer

Parameters

pszMkDocument
String

[in] Path to the file (document to be saved) on the disk.

rgf
UInt32[]

[in] Flags whose values for valid file attributes are taken from the tagVSQEQSFlags enumeration. The default value is zero.

pFileInfo
VSQEQS_FILE_ATTRIBUTE_DATA[]

[in] Values taken from the VSQEQS_FILE_ATTRIBUTE_DATA structure containing information about the file attributes. Can be null; is ignored if rgf is 0.

pdwQSResult
UInt32

[out] A value taken from the tagVSQuerySaveResult enumeration specifying the results of a QuerySave.

prgfMoreInfo
UInt32

[out] A value taken from the tagVSQuerySaveResultFlags enumeration specifying the results of a QuerySave.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

HRESULT QuerySaveFiles2 (  
    [in] [in] LPCOLESTR pszMkDocument,  
    [in] VSQEQSFlags rgf,  
    [in] const VSQEQS_FILE_ATTRIBUTE_DATA *pFileInfo,  
    [out] VSQuerySaveResult *pdwQSResult,  
    [out] VSQuerySaveResultFlags *prgfMoreInfo  
);  

Applies to