IInternalExtensionMetadataService.SubscribeAsync Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přihlásí se k odběru změn metadat pro seznam oddílů.
public System.Threading.Tasks.Task<IDisposable> SubscribeAsync (System.Collections.Generic.IReadOnlyList<string> sectionNames, Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionMetadataObserver observer, System.Collections.Generic.IReadOnlyList<string> dependentSections, System.Threading.CancellationToken cancellationToken);
abstract member SubscribeAsync : System.Collections.Generic.IReadOnlyList<string> * Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionMetadataObserver * System.Collections.Generic.IReadOnlyList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
Public Function SubscribeAsync (sectionNames As IReadOnlyList(Of String), observer As IExtensionMetadataObserver, dependentSections As IReadOnlyList(Of String), cancellationToken As CancellationToken) As Task(Of IDisposable)
Parametry
- sectionNames
- IReadOnlyList<String>
Oddíly metadat požadované pro oznámení o aktualizacích
- observer
- IExtensionMetadataObserver
Instance pozorovatele.
- dependentSections
- IReadOnlyList<String>
Seznam oddílů, na které by měl pozorovatel čekat.
- cancellationToken
- CancellationToken
Token zrušení, který se má monitorovat.
Návraty
Jednorázový objekt pro správu životnosti předplatného.