Udostępnij za pośrednictwem


IExtensibilityDiagnosticManager.ReportExtensionItemDiscoveredAsync Method

Definition

Overloads

ReportExtensionItemDiscoveredAsync(Object, ExtensionIdentificationToken, CancellationToken)
Obsolete.

Reports a new extension to the IExtensibilityDiagnosticsService.

ReportExtensionItemDiscoveredAsync(Object, String, CancellationToken)

Reports a new extension to the IExtensibilityDiagnosticsService.

ReportExtensionItemDiscoveredAsync(Object, ExtensionIdentificationToken, CancellationToken)

Caution

Use ReportExtensionItemDiscoveredAsync(object, string, CancellationToken) instead

Reports a new extension to the IExtensibilityDiagnosticsService.

[System.Obsolete("Use ReportExtensionItemDiscoveredAsync(object, string, CancellationToken) instead", true)]
public System.Threading.Tasks.Task ReportExtensionItemDiscoveredAsync (object item, Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken token, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use ReportExtensionItemDiscoveredAsync(object, string, CancellationToken) instead", true)>]
abstract member ReportExtensionItemDiscoveredAsync : obj * Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ReportExtensionItemDiscoveredAsync (item As Object, token As ExtensionIdentificationToken, cancellationToken As CancellationToken) As Task

Parameters

item
Object

The item that was added.

token
ExtensionIdentificationToken

The identifying token of the extension that the item belongs to.

cancellationToken
CancellationToken

A token to signal cancellation.

Returns

A task to track the async work.

Attributes

Applies to

ReportExtensionItemDiscoveredAsync(Object, String, CancellationToken)

Reports a new extension to the IExtensibilityDiagnosticsService.

public System.Threading.Tasks.Task ReportExtensionItemDiscoveredAsync (object item, string extensionIdentifier, System.Threading.CancellationToken cancellationToken);
abstract member ReportExtensionItemDiscoveredAsync : obj * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ReportExtensionItemDiscoveredAsync (item As Object, extensionIdentifier As String, cancellationToken As CancellationToken) As Task

Parameters

item
Object

The item that was added.

extensionIdentifier
String

The unique identifier of the extension that the item belongs to.

cancellationToken
CancellationToken

A token to signal cancellation.

Returns

A task to track the async work.

Applies to