Share via


AgentSettings Constructor (TimeSpan, TimeSpan)

Initializes a new instance of the AgentSettings class.

Namespace:  Microsoft.TeamFoundation.Build.Workflow.Activities
Assembly:  Microsoft.TeamFoundation.Build.Workflow (in Microsoft.TeamFoundation.Build.Workflow.dll)

Syntax

'Declaration
Public Sub New ( _
    maxWaitTime As TimeSpan, _
    maxExecutionTime As TimeSpan _
)
public AgentSettings(
    TimeSpan maxWaitTime,
    TimeSpan maxExecutionTime
)
public:
AgentSettings(
    TimeSpan maxWaitTime, 
    TimeSpan maxExecutionTime
)
new : 
        maxWaitTime:TimeSpan * 
        maxExecutionTime:TimeSpan -> AgentSettings
public function AgentSettings(
    maxWaitTime : TimeSpan, 
    maxExecutionTime : TimeSpan
)

Parameters

  • maxWaitTime
    Type: System.TimeSpan

    The maximum time to wait for the build agent to become available.

  • maxExecutionTime
    Type: System.TimeSpan

    The maximum time to allow for the build agent to complete its activities.

.NET Framework Security

See Also

Reference

AgentSettings Class

AgentSettings Overload

Microsoft.TeamFoundation.Build.Workflow.Activities Namespace