IAsyncWorkspaceServiceFactory.CreateServiceAsync(IWorkspace) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create an instance of a service in the context of a IWorkspace
public:
System::Threading::Tasks::Task<System::Object ^> ^ CreateServiceAsync(Microsoft::VisualStudio::Workspace::IWorkspace ^ workspaceContext);
public System.Threading.Tasks.Task<object> CreateServiceAsync (Microsoft.VisualStudio.Workspace.IWorkspace workspaceContext);
public System.Threading.Tasks.Task<object?> CreateServiceAsync (Microsoft.VisualStudio.Workspace.IWorkspace workspaceContext);
abstract member CreateServiceAsync : Microsoft.VisualStudio.Workspace.IWorkspace -> System.Threading.Tasks.Task<obj>
Public Function CreateServiceAsync (workspaceContext As IWorkspace) As Task(Of Object)
Parameters
- workspaceContext
- IWorkspace
The workspace context instance
Returns
The Service instance