WorkspaceServiceHelper.GetCustomContextService(IWorkspace) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the ICustomContextService service
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);
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
Parameters
- workspace
- IWorkspace
workspace instance
Returns
Instance of an ICustomContextService or null if not found