Partager via


IInternalExtensionMetadataService.SubscribeAsync Méthode

Définition

S’abonne aux modifications de métadonnées pour une liste de sections.

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)

Paramètres

sectionNames
IReadOnlyList<String>

Sections de métadonnées demandées pour les notifications de mise à jour.

observer
IExtensionMetadataObserver

Observateur instance.

dependentSections
IReadOnlyList<String>

Liste des sections que cet observateur doit attendre.

cancellationToken
CancellationToken

Jeton d’annulation à surveiller.

Retours

Objet jetable pour gérer la durée de vie de l’abonnement.

S’applique à