Compartir a través de


IVsQueryEditQuerySave2.BeginQuerySaveBatch Method

Definition

Creates a batch of a sequence of documents before attempting to save them to disk.

public:
 int BeginQuerySaveBatch();
public:
 int BeginQuerySaveBatch();
int BeginQuerySaveBatch();
public int BeginQuerySaveBatch ();
abstract member BeginQuerySaveBatch : unit -> int
Public Function BeginQuerySaveBatch () As Integer

Returns

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

Remarks

COM Signature

From ivsqueryeditquerysave2.idl

HRESULT BeginQuerySaveBatch();  

This method is a hint to the environment that you are going to call several QuerySave operations (QuerySaveFile or QuerySaveFiles), and that you would like the user to receive only one piece of user interface (UI) for those calls. Batching these calls using the BeginQuerySaveBatch and EndQuerySaveBatch method increases the likelihood that the environment will display only one piece of UI; however, this is not guaranteed.

For example, when the caller batches QuerySaves, each individual (that is, not batched) save operation message box has a Cancel button. If Cancel is clicked, the operation is applied to future QuerySave calls until there are no more batched files to be processed.

For batched QuerySave operations, a call to EndQuerySaveBatch ends the batch. If the user cancels the operation, you will not prompt further until the batch operation is complete.

Applies to