Export (0) Print
Expand All

IOpenServiceActivity::CanExecute Method

Determines whether the Accelerator can be executed.

Syntax


HRESULT CanExecute(
    IOpenServiceActivityInput *pInput,
    IOpenServiceActivityOutputContext *pOutput,
    BOOL *pfCanExecute
);

Parameters

pInput
[in]  An IOpenServiceActivityInput interface that provides access to the input context and variables.
pOutput
[in]  An IOpenServiceActivityOutputContext interface that accepts output from the Accelerator.
pfCanExecute
[out] TRUE if the Accelerator can be executed; otherwise, FALSE.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

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

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

Community Additions

ADD
Show:
© 2014 Microsoft