IHTMLImgElement::mimeType Property

Retrieves the MIME type for the file.

Syntax

HRESULT IHTMLImgElement::get_mimeType(BSTR *p);

Parameters

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

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Returns a string describing the image's or anchor's MIME type (once it has loaded). If the object hasn't loaded yet, the empty string is returned.