IVsQueryEditQuerySave3::QuerySaveFile2 Method (String^, array<UInt32>^, array<VSQEQS_FILE_ATTRIBUTE_DATA>^, UInt32, UInt32)

 

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

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

int QuerySaveFile2(
	String^ pszMkDocument,
	array<unsigned int>^ rgf,
	array<VSQEQS_FILE_ATTRIBUTE_DATA>^ pFileInfo,
	[OutAttribute] unsigned int% pdwQSResult,
	[OutAttribute] unsigned int% prgfMoreInfo
)

Parameters

pszMkDocument
Type: System::String^

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

rgf
Type: array<System::UInt32>^

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

pFileInfo
Type: array<Microsoft.VisualStudio.Shell.Interop::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
Type: System::UInt32

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

prgfMoreInfo
Type: System::UInt32

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

Return Value

Type: System::Int32

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

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