This documentation is archived and is not being maintained.
CatalogNode::QueryParents Method
Visual Studio 2013
Returns the parents of this node. This function will call the web service.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
public: ReadOnlyCollection<CatalogNode^>^ QueryParents( IEnumerable<Guid>^ resourceTypeFilters, bool recurseToRoot, CatalogQueryOptions queryOptions )
Parameters
- resourceTypeFilters
- Type: System.Collections.Generic::IEnumerable<Guid>
The list of types that this query should include. If this is null or empty, all types will be included.
- recurseToRoot
- Type: System::Boolean
If true, this query will retrieve all parent nodes until the root. If it is false, it will only retrieve the direct parent of this node.
- queryOptions
- Type: Microsoft.TeamFoundation.Framework.Common::CatalogQueryOptions
Return Value
Type: System.Collections.ObjectModel::ReadOnlyCollection<CatalogNode>The parent nodes of this node.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: