GetType method

Retrieves a content type from the input context.

Syntax

HRESULT retVal = object.GetType(pType);

Parameters

  • pType [out]
    Type: [OpenServiceActivityContentType](cc849089(v=vs.85).md)

    An OpenServiceActivityContentType enumeration that contains the retrieved content type.

Return value

Type: HRESULT

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

Remarks

An Accelerator may be registered for more than one content type, such as document, selection, or link. Use this method to determine which content type is currently being used.

See also

IOpenServiceActivityInput::HasVariable