Share via


WorkspaceServiceHelper.GetIndexWorkspaceService(IWorkspace) 方法

定义

获取工作区实例的 IIndexWorkspaceService

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Workspace::Indexing::IIndexWorkspaceService ^ GetIndexWorkspaceService(Microsoft::VisualStudio::Workspace::IWorkspace ^ workspace);
public static Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService GetIndexWorkspaceService (this Microsoft.VisualStudio.Workspace.IWorkspace workspace);
static member GetIndexWorkspaceService : Microsoft.VisualStudio.Workspace.IWorkspace -> Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService
<Extension()>
Public Function GetIndexWorkspaceService (workspace As IWorkspace) As IIndexWorkspaceService

参数

workspace
IWorkspace

工作区实例

返回

IIndexWorkspaceService 的实例,如果未找到,则为 null

适用于