Gets or sets the language code of the object.
HRESULT IHTMLLinkElement3::get_hreflang(BSTR *p);HRESULT IHTMLLinkElement3::put_hreflang(BSTR v);
- Pointer to a variable of type BSTR that receives the language code.
- BSTR that specifies the language code.
Returns S_OK if successful, or an error value otherwise.
You must set the value of this property before you can retrieve it.
Language codes identify natural languages that are spoken, written, or otherwise used for the communication of information among people, and are defined and explained in Tags for the Identification of Languages (RFC1766). Computer languages are explicitly excluded from language codes.
IHTMLLinkElement3::hreflang was introduced in Microsoft Internet Explorer 6