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.UriCan only be a uri of a changeset or a shelveset.
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.