CanPreviewType method

Determines whether the Accelerator can preview the specified content type.

Syntax

HRESULT retVal = object.CanPreviewType(type, pfCanPreview);

Parameters

  • type [in]
    Type: [OpenServiceActivityContentType](cc849089(v=vs.85).md)

    A value from the OpenServiceActivityContentType enumeration, specifying the content type.

  • pfCanPreview [out]
    Type: BOOL

    TRUE if a preview is possible; otherwise, FALSE.

Return value

Type: HRESULT

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

See also

IOpenServiceActivity::CanPreview