InvokeRequired Property
Collapse the table of content
Expand the table of content

ISynchronizeInvoke.InvokeRequired Property

 

Gets a value indicating whether the caller must call Invoke when calling an object that implements this interface.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

bool InvokeRequired { get; }

Property Value

Type: System.Boolean

true if the caller must call Invoke; otherwise, false.

This property determines whether the caller must call Invoke when making method calls to an object that implements this interface. Such objects are bound to a specific thread and are not thread-safe. If you are calling a method from a different thread, you must use the Invoke method to marshal the call to the proper thread.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft