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)

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

returnValue = instance.AddItem(attributeActivityID)

public ActivityReference AddItem (
	string attributeActivityID
public ActivityReference AddItem (
	String attributeActivityID
public function AddItem (
	attributeActivityID : String
) : ActivityReference



The activity ID.

Return Value

Returns ActivityReference.

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

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

Development Platforms

Windows 8.1