Freigeben über


InformationNodeConverters.AddAgentScopeActivityTracking Method

Adds an agent scope activity tracking node to a 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)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function AddAgentScopeActivityTracking ( _
    buildInformation As IBuildInformation, _
    activityInstanceId As String, _
    activityType As String, _
    displayText As String _
) As IAgentScopeActivityTracking
public static IAgentScopeActivityTracking AddAgentScopeActivityTracking(
    this IBuildInformation buildInformation,
    string activityInstanceId,
    string activityType,
    string displayText
)
[ExtensionAttribute]
public:
static IAgentScopeActivityTracking^ AddAgentScopeActivityTracking(
    IBuildInformation^ buildInformation, 
    String^ activityInstanceId, 
    String^ activityType, 
    String^ displayText
)
static member AddAgentScopeActivityTracking : 
        buildInformation:IBuildInformation * 
        activityInstanceId:string * 
        activityType:string * 
        displayText:string -> IAgentScopeActivityTracking 
public static function AddAgentScopeActivityTracking(
    buildInformation : IBuildInformation, 
    activityInstanceId : String, 
    activityType : String, 
    displayText : String
) : IAgentScopeActivityTracking

Parameters

  • activityType
    Type: System.String
    The full type of the activity.
  • displayText
    Type: System.String
    The display text of the activity.

Return Value

Type: Microsoft.TeamFoundation.Build.Client.IAgentScopeActivityTracking
The agent scope 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).

.NET Framework Security

See Also

Reference

InformationNodeConverters Class

Microsoft.TeamFoundation.Build.Client Namespace