Retrieves the value of the id property for the object.
Syntax
HRESULT get_id( BSTR *p );
Parameters
- p
- Address of a string (BSTR) variable that receives the value of the id property. For scripting, this can be any alphanumeric string that begins with a letter, and can include the underscore (_) character.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
The id property is an SGML identifier used as the target for hypertext links or for naming particular objects in associated style sheets.
The value of the id property should be unique throughout the scope of the current document. If there is more than one object with the same identifier, a collection of those named items is created that can only be referenced by ordinal position.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
Sets the value of the id property for the object.
Syntax
HRESULT put_id( BSTR v );
Parameters
- v
- String (BSTR) that contains the ID to set. For scripting, this can be any alphanumeric string that begins with a letter, and can include the underscore (_) character.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
The id property is an SGML identifier used as the target for hypertext links or for naming particular objects in associated style sheets.
The value of the id property should be unique throughout the scope of the current document. If there is more than one object with the same identifier, a collection of those named items is created that can only be referenced by ordinal position.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0