ISynchronizeInvoke.InvokeRequired Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: