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.Int32Workitem Id of the code review request.
storeOptions
Type: Microsoft.TeamFoundation.Discussion.Client.QueryStoreOptionsSpecifies the stores from which the discussions are retrieved.
- callback
Type: System.AsyncCallback
- userState
Type: System.Object
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
- 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.