Partager via


RelatedActivityCollection.AddItem Method

Applies To: Windows 8.1

Creates an ActivityReferenceand adds it to the RelatedActivityCollection.

Namespace: Microsoft.Assessments.Runtime
Assembly: Microsoft.Assessments.Core (in Microsoft.Assessments.Core.dll)

Usage

'Usage
Dim instance As RelatedActivityCollection
Dim attributeActivityID As String
Dim returnValue As ActivityReference

returnValue = instance.AddItem(attributeActivityID)

Syntax

'Declaration
Public Function AddItem ( _
    attributeActivityID As String _
) As ActivityReference
public ActivityReference AddItem (
    string attributeActivityID
)
public:
ActivityReference^ AddItem (
    String^ attributeActivityID
)
public ActivityReference AddItem (
    String attributeActivityID
)
public function AddItem (
    attributeActivityID : String
) : ActivityReference

Parameters

  • attributeActivityID
    The activity ID.

Return Value

Returns ActivityReference.

Remarks

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 8.1

See Also

Reference

RelatedActivityCollection Class
RelatedActivityCollection Members
Microsoft.Assessments.Runtime Namespace