ObservableSettingsListBase<TValue>.SubscribeAsync Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows targetBlock
to receive updates of the list of items stored on the list
and receive up-to-date versions of it whenever it gets modified.
public virtual System.Threading.Tasks.Task<IDisposable> SubscribeAsync (System.Threading.Tasks.Dataflow.ITargetBlock<Microsoft.VisualStudio.Shell.StatefulReadOnlyList<ValueT,object>> targetBlock, System.Threading.CancellationToken cancellationToken = default);
abstract member SubscribeAsync : System.Threading.Tasks.Dataflow.ITargetBlock<Microsoft.VisualStudio.Shell.StatefulReadOnlyList<'ValueT, obj>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
override this.SubscribeAsync : System.Threading.Tasks.Dataflow.ITargetBlock<Microsoft.VisualStudio.Shell.StatefulReadOnlyList<'ValueT, obj>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
Public Overridable Function SubscribeAsync (targetBlock As ITargetBlock(Of StatefulReadOnlyList(Of ValueT, Object)), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDisposable)
- targetBlock
- ITargetBlock<StatefulReadOnlyList<ValueT,Object>>
- cancellationToken
- CancellationToken