This documentation is archived and is not being maintained.

InformationNodeConverters.AddActivityTracking Method

Adds an activity tracking node to the specified build information object. Does not save to the server.

Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)

public static IActivityTracking AddActivityTracking(
	this IBuildInformation buildInformation,
	string activityInstanceId,
	string activityType,
	string displayText


Type: Microsoft.TeamFoundation.Build.Client.IBuildInformation

The build information object to which the activity tracking node will be added.

Type: System.String
Type: System.String

The full type of the activity.

Type: System.String

The display text of the activity.

Return Value

Type: Microsoft.TeamFoundation.Build.Client.IActivityTracking
The activity tracking node.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IBuildInformation. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).