ConnectTimeout property
The
ConnectTimeout
property returns or sets the number of milliseconds the control waits for the FactoryTalk Batch
Server to acknowledge a connection before assuming that communication with the server cannot be established. The ConnectTimeout
property applies to the BatchRemote
object.Syntax | object.ConnectTimeout [= value] | |
The ConnectTimeout property syntax has these parts: | ||
Part | Description | |
object | Object expression that evaluates to a previously defined BatchRemote.RemoteSupport object. | |
value | Numeric expression specifying the length of time, in milliseconds, that the control waits for the FactoryTalk Batch Server to acknowledge a connection before assuming that communication with the server cannot be established. The default is 5000 . | |
Remarks | Setting this property to a value less than one causes an error. |
This code example is
Visual Basic
6 syntax.Example: | Dimension a remote FactoryTalk Batch Server object:Dim svr As New BatchRemote.RemoteSupport Set the ConnectTimeout period: svr.ConnectTimeout = 4000 |
Provide Feedback