Microsoft DirectX 9.0

IComponent::put_Type

The put_Type method sets an IComponentType object describing the general characteristics of the component.

Syntax

HRESULT put_Type(
  IComponentType*  pCT
);

Parameters

pCT

[in] Pointer to an IComponentType object that specifies the new values for the component.

Return Values

Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.

Remarks

Using the IComponent base class interface, it is possible to set the type to be NULL. If you try to do this with the derived IMPEG2Component class interface, this method will return E_POINTER. The IMPEG2Component object cannot have the base IComponentType class interface as the set type - this will return Type Mismatch (0x80020005).

See Also