共用方式為


ComPtrRefBase 類別

支援 WRL 基礎結構,而且不是為了要直接從您的程式碼中使用而設計。

template <
   typename T
>
class ComPtrRefBase;

參數

  • T
    ComPtr<T> 型別或衍生自其本身的型別,而不僅是 ComPtr 表示的介面。

備註

表示 ComPtrRef 類別 (Class) 的基底類別 (Base Class)。

成員

公用 Typedefs

名稱

說明

InterfaceType

範本參數 T類型之同義資料表。

公用運算子

名稱

說明

ComPtrRefBase::operator IInspectable** 運算子

將目前 ptr_ 資料成員轉型至 IInspectable 介面指標的指標。

ComPtrRefBase::operator IUnknown** 運算子

將目前 ptr_ 資料成員轉型至 IUnknown 介面的指標的指標。

受保護的資料成員

名稱

說明

ComPtrRefBase::ptr_ 資料成員

對目前樣板參數所指定型別的指標。

繼承階層

ComPtrRefBase

需求

標題: client.h

命名空間: Microsoft::WRL::Details

請參閱

參考

Microsoft::WRL::Details 命名空間