Method IsMainThread IsMainThread() Determines whether the current thread is the main thread. Declaration public override bool IsMainThread() Returns Type Description bool Whether or not this thread is the main thread. Overrides TaskScheduler.IsMainThread()