IDiscussionManager.BeginQueryByVersion Method

Queries the discussions associated with the specified changeset or shelveset.

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 BeginQueryByVersion ( _
    versionUri As Uri, _
    storeOptions As QueryStoreOptions, _
    callback As AsyncCallback, _
    userState As Object _
) As IAsyncResult
IAsyncResult BeginQueryByVersion(
    Uri versionUri,
    QueryStoreOptions storeOptions,
    AsyncCallback callback,
    Object userState
)
IAsyncResult^ BeginQueryByVersion(
    Uri^ versionUri, 
    QueryStoreOptions storeOptions, 
    AsyncCallback^ callback, 
    Object^ userState
)
abstract BeginQueryByVersion : 
        versionUri:Uri * 
        storeOptions:QueryStoreOptions * 
        callback:AsyncCallback * 
        userState:Object -> IAsyncResult
function BeginQueryByVersion(
    versionUri : Uri, 
    storeOptions : QueryStoreOptions, 
    callback : AsyncCallback, 
    userState : Object
) : IAsyncResult

Parameters

  • versionUri
    Type: System.Uri

    Can only be a uri of a changeset or a shelveset.

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