Share via


ConnectedServiceHandler.UpdateServiceInstanceAsync Method

Definition

Given an existing connected service instance, update the necessary files and SDKs in the project in order to enable the given service.

public:
 virtual System::Threading::Tasks::Task<Microsoft::VisualStudio::ConnectedServices::UpdateServiceInstanceResult ^> ^ UpdateServiceInstanceAsync(Microsoft::VisualStudio::ConnectedServices::ConnectedServiceHandlerContext ^ context, System::Threading::CancellationToken ct);
public virtual System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.UpdateServiceInstanceResult> UpdateServiceInstanceAsync (Microsoft.VisualStudio.ConnectedServices.ConnectedServiceHandlerContext context, System.Threading.CancellationToken ct);
abstract member UpdateServiceInstanceAsync : Microsoft.VisualStudio.ConnectedServices.ConnectedServiceHandlerContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.UpdateServiceInstanceResult>
override this.UpdateServiceInstanceAsync : Microsoft.VisualStudio.ConnectedServices.ConnectedServiceHandlerContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.UpdateServiceInstanceResult>
Public Overridable Function UpdateServiceInstanceAsync (context As ConnectedServiceHandlerContext, ct As CancellationToken) As Task(Of UpdateServiceInstanceResult)

Parameters

context
ConnectedServiceHandlerContext

The service instance that should be added to the project, including the project that it should be added to and other information.

ct
CancellationToken

Cancellation Token to track cancellation.

Returns

Returns an UpdateServiceInstanceResult that contains information for launching GettingStarted information after UpdateServiceInstanceAsync has completed.

Applies to