IHTMLObjectElement::type Property

Gets or sets the MIME type of the object.

Syntax

HRESULT IHTMLObjectElement::get_type(BSTR *p);
HRESULT IHTMLObjectElement::put_type(BSTR v);

Parameters

  • p
    Pointer to a variable of type BSTR that receives the MIME type of the object.
  • v
    BSTR that specifies the MIME type of the object.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

MIME is an abbreviation for Multipurpose Internet Mail Extension, and is a set of enhancements used with Simple Mail Transfer Protocol (SMTP). Used together, MIME and SMTP allow Internet messages to include a mixture of audio, images, video, and text components, and accommodate a variety of international character sets.

When no IHTMLObjectElement::classid attribute is specified for an object, the IHTMLObjectElement::type property is used to retrieve the class identifier for the object.

In Microsoft Internet Explorer 6, This property now applies to the a, link, and script objects.

See Also

IHTMLObjectElement::data