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
声明
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.TeamFoundation.Build.Workflow.Activities Namespace