TeamFoundationCatalogService.QueryResourcesByType Method
Returns all of the catalog resources for the provided types.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function QueryResourcesByType ( _
requestContext As TeamFoundationRequestContext, _
resourceTypes As IEnumerable(Of Guid), _
queryOptions As CatalogQueryOptions _
) As List(Of CatalogResource)
public List<CatalogResource> QueryResourcesByType(
TeamFoundationRequestContext requestContext,
IEnumerable<Guid> resourceTypes,
CatalogQueryOptions queryOptions
)
public:
List<CatalogResource^>^ QueryResourcesByType(
TeamFoundationRequestContext^ requestContext,
IEnumerable<Guid>^ resourceTypes,
CatalogQueryOptions queryOptions
)
member QueryResourcesByType :
requestContext:TeamFoundationRequestContext *
resourceTypes:IEnumerable<Guid> *
queryOptions:CatalogQueryOptions -> List<CatalogResource>
public function QueryResourcesByType(
requestContext : TeamFoundationRequestContext,
resourceTypes : IEnumerable<Guid>,
queryOptions : CatalogQueryOptions
) : List<CatalogResource>
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe context for this request.
resourceTypes
Type: System.Collections.Generic.IEnumerable<Guid>The identifiers for the types of resources to filter on.
queryOptions
Type: Microsoft.TeamFoundation.Framework.Common.CatalogQueryOptionsIf [ExpandDependencies] is specified, the [Dependencies] property on nodes will contain the nodes they depend 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 having null for that value. Extra data should only be retrieved if it is needed because 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
- 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.