ParentCollection::GetItem method
Returns a parent from the ParentCollection.
Syntax
virtual HRESULT GetItem(
[in] INT index,
[out] LPCWSTR *parent
) = 0;
Parameters
-
index [in]
-
The parent identifier.
-
parent [out]
-
The parent.
Return value
If the function succeeds, it returns S_OK. If it fails, it returns an error value.
Remarks
index ranges from 0 to one less than the count of items in the collection.
A ParentCollection holds data from a TestCase/Parents element.
The parent is the value of element Parents/Parent.
Requirements
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
Header |
|
DLL |
|