description | title | ms.date | ms.topic | f1_keywords | helpviewer_keywords | author | ms.author | manager | ms.subservice | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the number of custom viewers that might be available for this property. |
IDebugProperty3::GetCustomViewerCount |
11/04/2016 |
reference |
|
|
maiak |
maiak |
mijacobs |
debug-diagnostics |
|
Gets the number of custom viewers that might be available for this property.
int GetCustomViewerCount(
out uint pcelt
);
HRESULT GetCustomViewerCount(
ULONG* pcelt
);
pcelt
[out] The number of custom viewers available for this property.
If successful, returns S_OK
; otherwise, returns an error code.
In order to support type visualizers, this method forwards the call to the GetCustomViewerCount method. If the expression evaluator also supports custom viewers for this property's type, this method adds the number of custom viewers to the returned value.
For detailed information about the differences between type visualizers and custom viewers, see Type Visualizer and Custom Viewer.
The following example shows how to implement this method for a CProperty object that exposes the IDebugProperty3 interface.
STDMETHODIMP CProperty::GetCustomViewerCount(ULONG* pcelt)
{
if (pcelt == NULL)
{
return E_POINTER;
}
if (GetVisualizerService())
{
return m_pIEEVisualizerService->GetCustomViewerCount(pcelt);
}
else
{
return E_NOTIMPL;
}
}