Share via


IScriptNode::GetParent

Returns the IScriptNode object that is the parent of an object.

Syntax

HRESULT GetParent(  
   IScriptNode       **ppsnParent  
);  

Parameters

ppsnParent
[out] The address of a variable that receives a pointer to the IScriptNode interface of the parent instance.

If the class implements IScriptEntry or IScriptScriptlet, an IScriptNode object is returned.

If the class implements IScriptNode (representing a Web page), NULL is returned.

Return Value

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

Value Description
S_OK The method succeeded.

Remarks

See also

IScriptNode Interface