Partager via


WorkItemStore.GetQueryDefinition Method

Gets a query definition that is identified by the specified GUID.

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

Syntax

'Déclaration
Public Function GetQueryDefinition ( _
    guid As Guid _
) As QueryDefinition
public QueryDefinition GetQueryDefinition(
    Guid guid
)
public:
QueryDefinition^ GetQueryDefinition(
    Guid guid
)
member GetQueryDefinition : 
        guid:Guid -> QueryDefinition 
public function GetQueryDefinition(
    guid : Guid
) : QueryDefinition

Parameters

  • guid
    Type: System.Guid
    The ID of the query definition.

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client.QueryDefinition
The query definition.

Exceptions

Exception Condition
UnauthorizedAccessException

A query definition that has the specified GUID was not found.

Remarks

This API replaces GetStoredQuery(Guid).

.NET Framework Security

See Also

Reference

WorkItemStore Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace