Udostępnij za pośrednictwem


IWorkspaceServiceFactory.CreateService(IWorkspace) Method

Definition

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.

Applies to