This documentation is archived and is not being maintained.
IBuildDetail::Connect Method (Int32, Int32, ISynchronizeInvoke)
Visual Studio 2013
Starts polling, using the specified interval, time-out and ISynchronizeInvoke object.
When the StatusChanging, StatusChanged, or PollingCompleted events are handled by a visual Windows Forms component, that component should be passed in as the synchronizingObject so that the event handlers are called on the same thread on which the component was created.
Namespace: Microsoft.TeamFoundation.Build.Client
Assembly: Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
void Connect( int pollingInterval, int timeout, ISynchronizeInvoke^ synchronizingObject )
Parameters
- pollingInterval
- Type: System::Int32
The polling interval, in milliseconds.
- timeout
- Type: System::Int32
The time-out, in milliseconds.
- synchronizingObject
- Type: System.ComponentModel::ISynchronizeInvoke
The object that is used to synchronize polling events. If null, events will be fired on a thread pool thread.
- 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.
Show: