IHTMLAnchorElement::urn Property

Sets or gets a Uniform Resource Name (URN) for a target document.

Syntax

HRESULT IHTMLAnchorElement::get_urn(BSTR *p);
HRESULT IHTMLAnchorElement::put_urn(BSTR v);

Parameters

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

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

URNs are an adjunct to URLs. A URL, which is the address used on the World Wide Web, specifies a particular file on a particular machine. A URN specifies the identity of a resource instead of its location.

See Also

IHTMLDocument2::URL