共用方式為


WorkspaceServiceHelper.GetCustomContextService(IWorkspace) 方法

定義

傳回 ICustomContextService 服務

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

參數

workspace
IWorkspace

工作區實例

傳回

找不到 ICustomContextService 的實例或 Null

適用於