共用方式為


iOpcRelationshipSet::GetEnumerator 方法 (msopc.h)

取得集合中 IOpcRelationship 介面指標的列舉值。

語法

HRESULT GetEnumerator(
  [out, retval] IOpcRelationshipEnumerator **relationshipEnumerator
);

參數

[out, retval] relationshipEnumerator

集合中 IOpcRelationship 指標之列舉值之 IOpcRelationship 介面的 IOpcRelationshipEnumerator 介面指標指標的指標。

傳回值

方法會傳回 HRESULT。 可能的值包括 (但不限於) 下表中的這些值。

傳回碼 描述
S_OK
此方法已成功。
E_POINTER
relationshipEnumerator 參數為 NULL
套件耗用量錯誤
套件耗用量錯誤群組中的 HRESULT 錯誤碼。
元件 URI 錯誤
來自元件 URI 錯誤群組HRESULT 錯誤碼。

規格需求

需求
最低支援的用戶端 Windows 7 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 R2 [僅限桌面應用程式]
目標平台 Windows
標頭 msopc.h

另請參閱

使用封裝 API 使用者入門

IOpcRelationshipSet

概觀

封裝 API 參考

封裝 API 範例

封裝錯誤

參考

關聯性概觀