共用方式為


appendMedium method

Adds a medium to the end of the current list. If the medium is already used, it is first removed.

 

Syntax

HRESULT retVal = object.appendMedium(bstrMedium);

Parameters

  • bstrMedium [in]
    Type: BSTR

    The new medium to add.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK

The operation completed successfully.

 

Standards information

See also

Reference

IHTMLCSSMediaList::deleteMedium

IHTMLCSSMediaList::item

IHTMLCSSMediaList::length

IHTMLCSSMediaList::mediaText