IDiscussionManager.BeginQueryByCodeReviewRequest Method

Queries the discussions associated with the specified code review request.

The results can come from the server or the local store, or both, by setting the option, whose default value is QueryStoreOption.ServerOnly.

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

Syntax

'Declaration
Function BeginQueryByCodeReviewRequest ( _
    workItemId As Integer, _
    storeOptions As QueryStoreOptions, _
    callback As AsyncCallback, _
    userState As Object _
) As IAsyncResult
IAsyncResult BeginQueryByCodeReviewRequest(
    int workItemId,
    QueryStoreOptions storeOptions,
    AsyncCallback callback,
    Object userState
)
IAsyncResult^ BeginQueryByCodeReviewRequest(
    int workItemId, 
    QueryStoreOptions storeOptions, 
    AsyncCallback^ callback, 
    Object^ userState
)
abstract BeginQueryByCodeReviewRequest : 
        workItemId:int * 
        storeOptions:QueryStoreOptions * 
        callback:AsyncCallback * 
        userState:Object -> IAsyncResult
function BeginQueryByCodeReviewRequest(
    workItemId : int, 
    storeOptions : QueryStoreOptions, 
    callback : AsyncCallback, 
    userState : Object
) : IAsyncResult

Parameters

  • workItemId
    Type: System.Int32

    Workitem Id of the code review request.

Return Value

Type: System.IAsyncResult
Returns IAsyncResult.

Remarks

We do not currently support QueryStoreOption.LocalOnly. To query for local discussions, you must use QueryStoreOption.ServerAndLocal which will first query the server for the existing discussions, and then update them with the locally saved ones.

Any local discussion or comment that no longer exists on the server will not be retrieved.

.NET Framework Security

See Also

Reference

IDiscussionManager Interface

Microsoft.TeamFoundation.Discussion.Client Namespace