IVsQueryEditQuerySave3.QuerySaveFile2 Method
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)
Syntax
'Declaration
Function QuerySaveFile2 ( _
pszMkDocument As String, _
rgf As UInteger(), _
pFileInfo As VSQEQS_FILE_ATTRIBUTE_DATA(), _
<OutAttribute> ByRef pdwQSResult As UInteger, _
<OutAttribute> ByRef prgfMoreInfo As UInteger _
) As Integer
int QuerySaveFile2(
string pszMkDocument,
uint[] rgf,
VSQEQS_FILE_ATTRIBUTE_DATA[] pFileInfo,
out uint pdwQSResult,
out uint prgfMoreInfo
)
int QuerySaveFile2(
[InAttribute] String^ pszMkDocument,
[InAttribute] array<unsigned int>^ rgf,
[InAttribute] array<VSQEQS_FILE_ATTRIBUTE_DATA>^ pFileInfo,
[OutAttribute] unsigned int% pdwQSResult,
[OutAttribute] unsigned int% prgfMoreInfo
)
abstract QuerySaveFile2 :
pszMkDocument:string *
rgf:uint32[] *
pFileInfo:VSQEQS_FILE_ATTRIBUTE_DATA[] *
pdwQSResult:uint32 byref *
prgfMoreInfo:uint32 byref -> int
function QuerySaveFile2(
pszMkDocument : String,
rgf : uint[],
pFileInfo : VSQEQS_FILE_ATTRIBUTE_DATA[],
pdwQSResult : uint,
prgfMoreInfo : uint
) : int
Parameters
pszMkDocument
Type: String[in] Path to the file (document to be saved) on the disk.
rgf
Type: array<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 nulla null reference (Nothing in Visual Basic); is ignored if rgf is 0.
pdwQSResult
Type: UInt32%[out] A value taken from the tagVSQuerySaveResult enumeration specifying the results of a QuerySave.
prgfMoreInfo
Type: UInt32%[out] A value taken from the tagVSQuerySaveResultFlags enumeration specifying the results of a QuerySave.
Return Value
Type: Int32
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.