Share via


WorkspaceServiceHelper.GetIndexWorkspaceDataService(IWorkspace) 方法

定义

获取工作区实例的 IIndexWorkspaceDataService

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

参数

workspace
IWorkspace

工作区实例

返回

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

适用于