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
'Declaração
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
- 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.