MonobjcMonobjc Documented Class Library
IsMainThread Property
NamespacesMonobjc.FoundationNSThreadIsMainThread

Returns a Boolean value that indicates whether the receiver is the main thread.

Original signature is '- (BOOL)isMainThread'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool IsMainThread { get; }
Public Overridable ReadOnly Property IsMainThread As Boolean
	Get
public:
virtual property bool IsMainThread {
	bool get ();
}
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)