次の方法で共有


IEnumConnectionPoints::Clone (Compact 2013)

3/26/2014

This method creates another connection point enumerator with the same state as the current enumerator.

IEnumConnectionPoints::Clone makes it possible to record a point in the enumeration sequence in order to return to that point at a later time.

The caller must release this new enumerator separately from the first enumerator.

Syntax

HRESULT Clone(
  IEnumConnectionPoints** ppEnum 
);

Parameters

  • ppEnum
    [out] Address of output variable that receives the IEnumConnectionPoints interface pointer.

Return Value

This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED.

Remarks

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

Header

ocidl.h,
ocidl.idl

Library

ole32.lib,
uuid.lib

See Also

Reference

IEnumConnectionPoints