Share via


IVsUpdateSolutionEvents2.UpdateSolution_Begin Method

Called before any build actions have begun. This is the last chance to cancel the build before any building begins.

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

Syntax

'Declaration
Function UpdateSolution_Begin ( _
    <OutAttribute> ByRef pfCancelUpdate As Integer _
) As Integer
int UpdateSolution_Begin(
    out int pfCancelUpdate
)
int UpdateSolution_Begin(
    [InAttribute] [OutAttribute] int% pfCancelUpdate
)
abstract UpdateSolution_Begin : 
        pfCancelUpdate:int byref -> int
function UpdateSolution_Begin(
    pfCancelUpdate : int
) : int

Parameters

  • pfCancelUpdate
    Type: System.Int32%

    [in, out] Pointer to a flag indicating cancel update.

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 vsshell.idl:

HRESULT IVsUpdateSolutionEvents2::UpdateSolution_Begin(
   [in, out] BOOL *pfCancelUpdate
);

Informs listeners that update actions might be about to begin. This method is sent before any dependency checking or build/deploy prompts. A component can set *pbCancel to true to cancel the update actions. If this event is sent, the UpdateSolution_Done event should be expected whether or not the event is canceled.

.NET Framework Security

See Also

Reference

IVsUpdateSolutionEvents2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace