CanExecute method

Determines whether the Accelerator can be executed.

 

Syntax

HRESULT retVal = object.CanExecute(pInput, pOutput, pfCanExecute);

Parameters

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method should be called before the IOpenServiceActivity::Execute method is called.

The interface referenced by the pOutput parameter can determine if navigation is allowed, through a call to the IOpenServiceActivityOutputContext::CanNavigate method of that interface.