Set the ISynchronizeInvoke
object to use as the invoke object. When returning results from asynchronous calls,
the Invoke method on this object will be called to pass the results back
in a thread safe manner.
| C# | Visual Basic | Visual C++ |
public ISynchronizeInvoke InvokeableObject{ get; set;}
Public Property InvokeableObject As ISynchronizeInvoke
public: property ISynchronizeInvoke^ InvokeableObject { ISynchronizeInvoke^ get (); void set (ISynchronizeInvoke^ value); }
This is the recommended way of using the DNSService class. It is recommended
that you pass your main Form (window) in.