Partager via


IActiveScriptAuthor::RemoveNamedItem

Removes a NamedItem object from the namespace of the script authoring engine.

Syntax

HRESULT RemoveNamedItem(  
   LPCOLESTR          pszName  
);  

Parameters

pszName
[in] The address of the buffer that identifies the NamedItem object to remove.

Return Value

An HRESULT. Possible values include, but are not limited to, those in the following table.

Value Description
S_OK The method succeeded.
S_FALSE The NamedItem object is not present in the namespace of the script authoring engine.

Remarks

IActiveScript::AddNamedItem is used to inject the NamedItem object into the script authoring engine's namespace.

See also

IActiveScriptAuthor Interface
IActiveScriptAuthor::AddNamedItem