Export (0) Print
Expand All

ISynchronizeInvoke.InvokeRequired Property

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

[Visual Basic]
ReadOnly Property InvokeRequired As Boolean
[C#]
bool InvokeRequired {get;}
[C++]
__property bool get_InvokeRequired();
[JScript]
function get InvokeRequired() : Boolean;

Property Value

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

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ISynchronizeInvoke Interface | ISynchronizeInvoke Members | System.ComponentModel Namespace

Show:
© 2014 Microsoft