共用方式為


IDebugProperty3::GetCustomViewerList

 

如需 Visual Studio 2017 的最新文件請參閱 Visual Studio 2017 文件

取得這個屬性與相關聯的自訂檢視器的清單。

語法

HRESULT GetCustomViewerList(  
   ULONG                celtSkip,  
   ULONG                celtRequested,  
   DEBUG_CUSTOM_VIEWER* rgViewers,  
   ULONG*               pceltFetched  
);  
int GetCustomViewerList(  
   uint                  celtSkip,  
   uint                  celtRequested,  
   DEBUG_CUSTOM_VIEWER[] rgViewers,  
   out uint              pceltFetched  
);  

參數

celtSkip
[in]略過的檢視器的數目。

celtRequested
[in]要擷取的檢視器的數目 (也會指定的大小rgViewers陣列)。

rgViewers
[in、 out]陣列DEBUG_CUSTOM_VIEWER結構,以進行填寫。

pceltFetched
[out]檢視器傳回的實際數目。

傳回值

如果成功,傳回S_OK; 否則傳回錯誤碼。

備註

若要支援類型的視覺化檢視,這個方法會轉送到呼叫GetCustomViewerList方法。 如果運算式評估工具也支援自訂檢視器,這個屬性的型別,這個方法可以將適當的自訂檢視器附加至清單。

請參閱類型的視覺化檢視和自訂檢視器如需有關類型的視覺化檢視和自訂檢視器之間的差異。

範例

下列範例示範如何實作這個方法的CProperty公開物件IDebugProperty3介面。

STDMETHODIMP CProperty::GetCustomViewerList(ULONG celtSkip, ULONG celtRequested, DEBUG_CUSTOM_VIEWER* prgViewers, ULONG* pceltFetched)  
{  
    if (NULL == prgViewers)  
    {  
        return E_POINTER;  
    }  
  
    if (GetVisualizerService())  
    {  
        return m_pIEEVisualizerService->GetCustomViewerList(celtSkip, celtRequested, prgViewers, pceltFetched);  
    }  
    else  
    {  
        return E_NOTIMPL;  
    }  
}  

另請參閱

IDebugProperty3
DEBUG_CUSTOM_VIEWER
GetCustomViewerList
類型的視覺化檢視和自訂檢視器