PowerTCP Sockets for .NET
Start(PingThreadStart,IPAddress,Type,Object) Method




PingThreadStart delegate specifying the function to execute.
The local IP interface desired.
The Ping.Type of Echo technology desired.
Information to pass to the worker delegate function; can be null.
Starts a worker thread on which the specified delegate function executes.
Syntax
'Declaration
 
Public Overloads Sub Start( _
   ByVal worker As PingThreadStart, _
   ByVal localAddress As IPAddress, _
   ByVal type As Ping.Type, _
   ByVal state As Object _
) 
'Usage
 
Dim instance As Ping
Dim worker As PingThreadStart
Dim localAddress As IPAddress
Dim type As Ping.Type
Dim state As Object
 
instance.Start(worker, localAddress, type, state)
public void Start( 
   PingThreadStart worker,
   IPAddress localAddress,
   Ping.Type type,
   object state
)
public: void Start( 
   PingThreadStart* worker,
   IPAddress* localAddress,
   Ping.Type type,
   Object* state
) 
public:
void Start( 
   PingThreadStart^ worker,
   IPAddress^ localAddress,
   Ping.Type type,
   Object^ state
) 

Parameters

worker
PingThreadStart delegate specifying the function to execute.
localAddress
The local IP interface desired.
type
The Ping.Type of Echo technology desired.
state
Information to pass to the worker delegate function; can be null.
Remarks

This method provides a convenient means for executing blocking functions on a worker thread. Applications with a UI thread should use this technique to execute processes (like multiple Pings) that can block the UI thread.

Unhandled exceptions occurring on the worker thread will be caught and reported by the Error event.

See Also

Reference

Ping Class
Ping Members
Overload List


PowerTCP Sockets for .NET Documentation Version 4.5
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic