IWorkspaceServiceFactory.CreateService(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::Object ^ CreateService(Microsoft::VisualStudio::Workspace::IWorkspace ^ workspaceContext);
public object CreateService (Microsoft.VisualStudio.Workspace.IWorkspace workspaceContext);
public object? CreateService (Microsoft.VisualStudio.Workspace.IWorkspace workspaceContext);
abstract member CreateService : Microsoft.VisualStudio.Workspace.IWorkspace -> obj
Public Function CreateService (workspaceContext As IWorkspace) As Object
Parameters
- workspaceContext
- IWorkspace
The workspace context instance
Returns
The Service instance
Remarks
Implementations of this method should be free-threaded, i.e. callers of this method should be able to call it from any thread.