Query.EndQuery Method
Gets the WorkItemCollection object that resulted from the query.
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
'Declaração
Public Function EndQuery ( _
car As ICancelableAsyncResult _
) As WorkItemCollection
public WorkItemCollection EndQuery(
ICancelableAsyncResult car
)
public:
WorkItemCollection^ EndQuery(
ICancelableAsyncResult^ car
)
member EndQuery :
car:ICancelableAsyncResult -> WorkItemCollection
public function EndQuery(
car : ICancelableAsyncResult
) : WorkItemCollection
Parameters
- car
Type: Microsoft.TeamFoundation.Client.ICancelableAsyncResult
The ICancelableAsyncResult object that is returned by BeginQuery.
Return Value
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemCollection
The WorkItemCollection object that resulted from the query.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The car parameter is null. |
UnexpectedErrorException | The ICancelableAsyncResult object that is passed in the car parameter was not created by using BeginQuery. Use the correct query end method. |
.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.