Share via


CatalogNode.QueryParents Method

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)

Syntax

'Declaration
Public Function QueryParents ( _
    resourceTypeFilters As IEnumerable(Of Guid), _
    recurseToRoot As Boolean, _
    queryOptions As CatalogQueryOptions _
) As ReadOnlyCollection(Of CatalogNode)
public ReadOnlyCollection<CatalogNode> QueryParents(
    IEnumerable<Guid> resourceTypeFilters,
    bool recurseToRoot,
    CatalogQueryOptions queryOptions
)
public:
ReadOnlyCollection<CatalogNode^>^ QueryParents(
    IEnumerable<Guid>^ resourceTypeFilters, 
    bool recurseToRoot, 
    CatalogQueryOptions queryOptions
)
member QueryParents : 
        resourceTypeFilters:IEnumerable<Guid> * 
        recurseToRoot:bool * 
        queryOptions:CatalogQueryOptions -> ReadOnlyCollection<CatalogNode> 
public function QueryParents(
    resourceTypeFilters : IEnumerable<Guid>, 
    recurseToRoot : boolean, 
    queryOptions : CatalogQueryOptions
) : ReadOnlyCollection<CatalogNode>

Parameters

  • 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.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<CatalogNode>
The parent nodes of this node.

.NET Framework Security

See Also

Reference

CatalogNode Class

Microsoft.TeamFoundation.Framework.Client Namespace