WorkspaceServiceHelper.GetIndexWorkspaceService(IWorkspace) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得工作區實例的 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);
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