ConnectedServiceHandler::AddServiceInstanceAsync Method (ConnectedServiceHandlerContext^, CancellationToken)
Visual Studio 2015
Given a connected service instance, add the necessary files and SDKs to the project in order to enable the given service.
Assembly: Microsoft.VisualStudio.ConnectedServices (in Microsoft.VisualStudio.ConnectedServices.dll)
public: virtual Task<AddServiceInstanceResult^>^ AddServiceInstanceAsync( ConnectedServiceHandlerContext^ context, CancellationToken ct ) abstract
Parameters
- ct
- Type: System.Threading::CancellationToken
Return Value
Type: System.Threading.Tasks::Task<AddServiceInstanceResult^>^Returns a Task<TResult> that contains a an AddServiceInstanceResult object that contains information for the service folder and launching GettingStarted information after AddServiceInstanceAsync has completed.
The context's logger will write any status messages to the caller. This will include warnings and failures that occurred while trying to add a new file, SDK references, or injecting code.
Show: