Partager via


IVsSolutionLoadEvents.OnQueryBackgroundLoadProjectBatch Method

Fired before background loading a batch of projects. Normally a background batch loads a single pending project. This is a cancelable event.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Declaration
Function OnQueryBackgroundLoadProjectBatch ( _
    <OutAttribute> ByRef pfShouldDelayLoadToNextIdle As Boolean _
) As Integer
int OnQueryBackgroundLoadProjectBatch(
    out bool pfShouldDelayLoadToNextIdle
)
int OnQueryBackgroundLoadProjectBatch(
    [OutAttribute] bool% pfShouldDelayLoadToNextIdle
)
abstract OnQueryBackgroundLoadProjectBatch : 
        pfShouldDelayLoadToNextIdle:bool byref -> int
function OnQueryBackgroundLoadProjectBatch(
    pfShouldDelayLoadToNextIdle : boolean
) : int

Parameters

  • pfShouldDelayLoadToNextIdle
    Type: Boolean%

    [out] true if other background operations should complete before starting to load the project, otherwise false.

Return Value

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

Remarks

Clients of this event can cause the start of the batch loading to be delayed in order to ensure that other background operations complete before a new batch of projects starts to load by returning true for pfShouldDelayLoadToNextIdle. For example, a project system may want to ensure that the IntelliSense state for the currently loaded projects is up-to-date before starting new background load operations.

.NET Framework Security

See Also

Reference

IVsSolutionLoadEvents Interface

Microsoft.VisualStudio.Shell.Interop Namespace