次の方法で共有


RelatedActivityCollection::AddItem method

Creates an ActivityReference and adds it to the RelatedActivityCollection.

Syntax

virtual HRESULT AddItem(
  [in, optional]  LPCWSTR           attributeActivityID,
  [out, optional] ActivityReference **activityReference
) = 0;

Parameters

attributeActivityID [in, optional]

The activity ID.

activityReference [out, optional]

The ActivityReference that this method creates.

Return value

If the function succeeds, it returns S_OK. If it fails, it returns an error value.

Remarks

A RelatedActivityCollection holds data from an Issue/Impact/RelatedActivities element.

An ActivityReference holds data from a RelatedActivities/ActivityReference element.

The activity ID is the value of attribute ActivityID of element ActivityReference.

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
AxeRuntime.h
DLL
AxeCore.dll

See also

RelatedActivityCollection