Share via

IHTMLAnchorElement::mimeType Property

Retrieves the MIME type for the file.


HRESULT IHTMLAnchorElement::get_mimeType(BSTR *p);


  • 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.


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.