共用方式為


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

Retuns all of the catalog resources for the provided types.

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

Syntax

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

Parameters

  • propertyFilters
    Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, String>>

    The set of property filters to apply to the resource found. Matches will be based on both the key and the value of the property matching. If the value of a certain filter is null then it will be assumed that all resource with the supplied property should be returned. A match consists of a resource that matches all of the propertyFilters.

  • 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>
All of the resources for the provided types.

.NET Framework Security

See Also

Reference

TeamFoundationCatalogService Class

QueryResources Overload

Microsoft.TeamFoundation.Server.Core Namespace