次の方法で共有


IVsQueryEditQuerySave3.QuerySaveFiles2 Method

Definition

Notifies the environment that multiple files are about to be saved.

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

Parameters

rgfQuerySave
UInt32[]

[in] Flags are currently unused. The caller should always pass in the default null flag, which is zero.

cFiles
Int32

[in] File count.

rgpszMkDocuments
String[]

[in] Path to the file on the disk.

rgrgf
UInt32[]

[in] Flags whose values are taken from the tagVSQEQSFlags enumeration for valid file attributes. Default = 0.

rgFileInfo
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

COM Signature

From IVsQueryEditQuerySave90.idl:

HRESULT QuerySaveFiles2 (  
    [in] VSQuerySaveFlags rgfQuerySave,  
    [in] int cFiles,  
    [in, size_is(cFiles)] const LPCOLESTR rgpszMkDocuments[],  
    [in, size_is(cFiles)] const VSQEQS_FILE_ATTRIBUTE_DATA rgFileInfo[],  
    [out] VSQuerySaveResult *pdwQSResult,  
    [out] VSQuerySaveResultFlags *prgfMoreInfo  
);  

Applies to