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
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.BooleanIf 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.
.NET Framework Security
- 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.