IOpenServiceActivity::IsContentRecognized Method
.gif)
Note: This documentation is preliminary and is subject to change.
Determines whether the specified input is recognized.
Syntax
HRESULT IsContentRecognized( IOpenServiceActivityInput *pInput, BOOL *pfRecognized );
Parameters
- pInput
[in] An IOpenServiceActivityInput interface that provides access to the input context and variables.- pfRecognized
[out] TRUE if the content is recognized; otherwise, FALSE.
Return Value
Remarks
This method determines whether the input contains the type of information needed by an Accelerator before that Accelerator is executed. The CanExecute method performs a similar function, although it relies wholly on registry metadata set when the Accelerator was installed.
Note This method is not guaranteed to be called before the Execute and Preview methods are called. Successful Accelerator execution or preview should therefore not require side effects of this method, such as setting local variables.
See Also
IOpenServiceActivity::CanExecute, IOpenServiceActivityExtension::IsContentRecognized