CatalogNode.QueryParents Method
Returns the parents of this node. This function will call the web service.
Namespace: Microsoft.TeamFoundation.Server.Core
Assembly: Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)
Syntax
'Declaration
Public Function QueryParents ( _
requestContext As TeamFoundationRequestContext, _
resourceTypeFilters As IEnumerable(Of Guid), _
recurseToRoot As Boolean, _
queryOptions As CatalogQueryOptions _
) As List(Of CatalogNode)
public List<CatalogNode> QueryParents(
TeamFoundationRequestContext requestContext,
IEnumerable<Guid> resourceTypeFilters,
bool recurseToRoot,
CatalogQueryOptions queryOptions
)
public:
List<CatalogNode^>^ QueryParents(
TeamFoundationRequestContext^ requestContext,
IEnumerable<Guid>^ resourceTypeFilters,
bool recurseToRoot,
CatalogQueryOptions queryOptions
)
member QueryParents :
requestContext:TeamFoundationRequestContext *
resourceTypeFilters:IEnumerable<Guid> *
recurseToRoot:bool *
queryOptions:CatalogQueryOptions -> List<CatalogNode>
public function QueryParents(
requestContext : TeamFoundationRequestContext,
resourceTypeFilters : IEnumerable<Guid>,
recurseToRoot : boolean,
queryOptions : CatalogQueryOptions
) : List<CatalogNode>
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe current request context.
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.CatalogQueryOptionsIf ExpandDependencies is specified, the Dependencies property on nodes will contain the nodes they are dependent on. If IncludeParents is specified, the ParentNode property on the CatalogNode will contain the parent node. Leaving a given option will result in the returned catalog nodes to have null for that value. Extra data should only be retrieved if it is needed since computing and sending information can be expensive.
Return Value
Type: System.Collections.Generic.List<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.