Share via


IDebugExpressionEvaluator2::GetService

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Retrieves a service object given its unique identifier.

Syntax

HRESULT GetService (
   GUID        uid,
   IUnknown ** ppService
);
int GetService (
   Guid       uid,
   out object ppService
);

Parameters

uid
[in] Unique identifier of the service to retrieve.

ppService
[out] Returns an object that represents the service.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

This can be consumed by a third-party expression evaluator to obtain services from another expression evaluator. For example, this method could be used to obtain the interface for the visualizer service from the default expression evaluator. Third-party expression evaluators are unlikely to need to implement this interface.

See also