다음을 통해 공유


IQueryDataChangeProvider.SubscribeToChangesAsync<TResult> Method

Definition

Subscribes an observer to changes in the project system.

public System.Threading.Tasks.Task<IDisposable?> SubscribeToChangesAsync<TResult> (Microsoft.VisualStudio.ProjectSystem.Query.IPropertiesAvailableStatus properties, Microsoft.VisualStudio.ProjectSystem.Query.Execution.IQueryExecutionContext executionContext, IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryTrackUpdates<TResult>> observer, Microsoft.VisualStudio.ProjectSystem.Query.Execution.QueryProcessResult<Microsoft.VisualStudio.ProjectSystem.Query.IEntityValue> parentEntityResult, System.Threading.CancellationToken cancellationToken);
abstract member SubscribeToChangesAsync : Microsoft.VisualStudio.ProjectSystem.Query.IPropertiesAvailableStatus * Microsoft.VisualStudio.ProjectSystem.Query.Execution.IQueryExecutionContext * IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryTrackUpdates<'Result>> * Microsoft.VisualStudio.ProjectSystem.Query.Execution.QueryProcessResult<Microsoft.VisualStudio.ProjectSystem.Query.IEntityValue> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
Public Function SubscribeToChangesAsync(Of TResult) (properties As IPropertiesAvailableStatus, executionContext As IQueryExecutionContext, observer As IObserver(Of IQueryTrackUpdates(Of TResult)), parentEntityResult As QueryProcessResult(Of IEntityValue), cancellationToken As CancellationToken) As Task(Of IDisposable)

Type Parameters

TResult

The type of the result data from this provider.

Parameters

properties
IPropertiesAvailableStatus

The properties available status.

executionContext
IQueryExecutionContext

The query execution context.

observer
IObserver<IQueryTrackUpdates<TResult>>

An observer to receive change notifications.

parentEntityResult
QueryProcessResult<IEntityValue>

The parent entity result.

cancellationToken
CancellationToken

Cancellation token.

Returns

A task.

Applies to