IHTMLObjectElement::type Property

Gets or sets the MIME type of the object.


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


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

Return Value

Returns S_OK if successful, or an error value otherwise.


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


Community Additions