Condividi tramite


TeamFoundationCatalogService.QueryResources Method (TeamFoundationRequestContext, IEnumerable<Guid>, CatalogQueryOptions)

Returns the resource that is associated with the identifier.

Namespace:  Microsoft.TeamFoundation.Server.Core
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
Public Function QueryResources ( _
    requestContext As TeamFoundationRequestContext, _
    resourceIdentifiers As IEnumerable(Of Guid), _
    queryOptions As CatalogQueryOptions _
) As List(Of CatalogResource)
public List<CatalogResource> QueryResources(
    TeamFoundationRequestContext requestContext,
    IEnumerable<Guid> resourceIdentifiers,
    CatalogQueryOptions queryOptions
)
public:
List<CatalogResource^>^ QueryResources(
    TeamFoundationRequestContext^ requestContext, 
    IEnumerable<Guid>^ resourceIdentifiers, 
    CatalogQueryOptions queryOptions
)
member QueryResources : 
        requestContext:TeamFoundationRequestContext * 
        resourceIdentifiers:IEnumerable<Guid> * 
        queryOptions:CatalogQueryOptions -> List<CatalogResource> 
public function QueryResources(
    requestContext : TeamFoundationRequestContext, 
    resourceIdentifiers : IEnumerable<Guid>, 
    queryOptions : CatalogQueryOptions
) : List<CatalogResource>

Parameters

  • resourceIdentifiers
    Type: System.Collections.Generic.IEnumerable<Guid>

    The identifiers for the resources that is being search for. Identifiers that do not have corresponding resources will not return anything.

  • queryOptions
    Type: Microsoft.TeamFoundation.Framework.Common.CatalogQueryOptions

    If 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<CatalogResource>
The resources with the specified identifier.

.NET Framework Security

See Also

Reference

TeamFoundationCatalogService Class

QueryResources Overload

Microsoft.TeamFoundation.Server.Core Namespace