scripting:api:scopes:item

Item

Method of IScopes

Returns item by index

var ppScope = Scopes.Item(nIndex);
ppScope = Scopes.Item nIndex
CComPtr<IScope> pScope;
HRESULT hr = Scopes.get_Item(nIndex, &pScope);