共用方式為


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

適用於