Delen via


ICatalogService.QueryResources Method (IEnumerable<Guid>, CatalogQueryOptions)

Returns the resource that is associated with the identifier.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Function QueryResources ( _
    resourceIdentifiers As IEnumerable(Of Guid), _
    queryOptions As CatalogQueryOptions _
) As ReadOnlyCollection(Of CatalogResource)
ReadOnlyCollection<CatalogResource> QueryResources(
    IEnumerable<Guid> resourceIdentifiers,
    CatalogQueryOptions queryOptions
)
ReadOnlyCollection<CatalogResource^>^ QueryResources(
    IEnumerable<Guid>^ resourceIdentifiers, 
    CatalogQueryOptions queryOptions
)
abstract QueryResources : 
        resourceIdentifiers:IEnumerable<Guid> * 
        queryOptions:CatalogQueryOptions -> ReadOnlyCollection<CatalogResource> 
function QueryResources(
    resourceIdentifiers : IEnumerable<Guid>, 
    queryOptions : CatalogQueryOptions
) : ReadOnlyCollection<CatalogResource>

Parameters

  • 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.ObjectModel.ReadOnlyCollection<CatalogResource>
The resources with the specified identifiers.

.NET Framework Security

See Also

Reference

ICatalogService Interface

QueryResources Overload

Microsoft.TeamFoundation.Framework.Client Namespace