IVsQueryEditQuerySave3.QuerySaveFiles2 Method

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

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

Syntax

'宣言
Function QuerySaveFiles2 ( _
    rgfQuerySave As UInteger(), _
    cFiles As Integer, _
    rgpszMkDocuments As String(), _
    rgrgf As UInteger(), _
    rgFileInfo As VSQEQS_FILE_ATTRIBUTE_DATA(), _
    <OutAttribute> ByRef pdwQSResult As UInteger, _
    <OutAttribute> ByRef prgfMoreInfo As UInteger _
) As Integer
'使用
Dim instance As IVsQueryEditQuerySave3
Dim rgfQuerySave As UInteger()
Dim cFiles As Integer
Dim rgpszMkDocuments As String()
Dim rgrgf As UInteger()
Dim rgFileInfo As VSQEQS_FILE_ATTRIBUTE_DATA()
Dim pdwQSResult As UInteger
Dim prgfMoreInfo As UInteger
Dim returnValue As Integer

returnValue = instance.QuerySaveFiles2(rgfQuerySave, _
    cFiles, rgpszMkDocuments, rgrgf, _
    rgFileInfo, pdwQSResult, prgfMoreInfo)
int QuerySaveFiles2(
    uint[] rgfQuerySave,
    int cFiles,
    string[] rgpszMkDocuments,
    uint[] rgrgf,
    VSQEQS_FILE_ATTRIBUTE_DATA[] rgFileInfo,
    out uint pdwQSResult,
    out uint prgfMoreInfo
)
int QuerySaveFiles2(
    [InAttribute] array<unsigned int>^ rgfQuerySave, 
    [InAttribute] int cFiles, 
    [InAttribute] array<String^>^ rgpszMkDocuments, 
    [InAttribute] array<unsigned int>^ rgrgf, 
    [InAttribute] array<VSQEQS_FILE_ATTRIBUTE_DATA>^ rgFileInfo, 
    [OutAttribute] unsigned int% pdwQSResult, 
    [OutAttribute] unsigned int% prgfMoreInfo
)
function QuerySaveFiles2(
    rgfQuerySave : uint[], 
    cFiles : int, 
    rgpszMkDocuments : String[], 
    rgrgf : uint[], 
    rgFileInfo : VSQEQS_FILE_ATTRIBUTE_DATA[], 
    pdwQSResult : uint, 
    prgfMoreInfo : uint
) : int

Parameters

  • rgfQuerySave
    Type: []

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

  • rgpszMkDocuments
    Type: []

    [in] Path to the file on the disk.

  • rgrgf
    Type: []

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

  • rgFileInfo
    Type: []

    [in] Values taken from the VSQEQS_FILE_ATTRIBUTE_DATA structure containing information about the file attributes. Can be a null reference (Nothing in Visual Basic); is ignored if rgf is 0.

Return Value

Type: System.Int32

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
);

Permissions

See Also

Reference

IVsQueryEditQuerySave3 Interface

IVsQueryEditQuerySave3 Members

Microsoft.VisualStudio.Shell.Interop Namespace