scripting:api:scopes:parent

Parent

Method of IScopes

Find Scope parent

var ppParent = Scopes.Parent(pScope);
ppParent = Scopes.Parent pScope
CComPtr<IScope> pParent;
HRESULT hr = Scopes.Parent(pScope, &pParent);