IQueuedBuild.Connect Method (Int32, Int32, ISynchronizeInvoke)
Starts polling, by using the specified interval and ISynchronizeInvoke object. When the 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)
Syntax
'Declaration
Sub Connect ( _
pollingInterval As Integer, _
timeout As Integer, _
synchronizingObject As ISynchronizeInvoke _
)
void Connect(
int pollingInterval,
int timeout,
ISynchronizeInvoke synchronizingObject
)
void Connect(
int pollingInterval,
int timeout,
ISynchronizeInvoke^ synchronizingObject
)
abstract Connect :
pollingInterval:int *
timeout:int *
synchronizingObject:ISynchronizeInvoke -> unit
function Connect(
pollingInterval : int,
timeout : int,
synchronizingObject : ISynchronizeInvoke
)
Parameters
pollingInterval
Type: System.Int32The polling interval, in milliseconds.
timeout
Type: System.Int32The time-out, in milliseconds.
synchronizingObject
Type: System.ComponentModel.ISynchronizeInvokeThe object that is used to synchronize polling events. If null, events will be fired on a thread pool thread.
.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.