C# Класс SupportClass.ThreadClass, csharp-ldap

Support class used to handle threads
Наследование: IThreadRunnable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Abort ( ) : void

Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread. Calling this method usually terminates the thread

Abort ( System stateInfo ) : void

Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread while also providing exception information about the thread termination. Calling this method usually terminates the thread.

Current ( ) : ThreadClass,

Gets the currently running thread

Interrupt ( ) : void

Interrupts a thread that is in the WaitSleepJoin thread state

Join ( ) : void

Blocks the calling thread until a thread terminates

Join ( long MiliSeconds ) : void

Blocks the calling thread until a thread terminates or the specified time elapses

Join ( long MiliSeconds, int NanoSeconds ) : void

Blocks the calling thread until a thread terminates or the specified time elapses

Resume ( ) : void

Resumes a thread that has been suspended

Run ( ) : void

This method has no functionality unless the method is overridden

Start ( ) : void

Causes the operating system to change the state of the current thread instance to ThreadState.Running

Suspend ( ) : void

Suspends the thread, if the thread is already suspended it has no effect

ThreadClass ( ) : System

Initializes a new instance of the ThreadClass class

ThreadClass ( System Start ) : System

Initializes a new instance of the Thread class.

ThreadClass ( System Start, string Name ) : System

Initializes a new instance of the Thread class.

ThreadClass ( string Name ) : System

Initializes a new instance of the Thread class.

ToString ( ) : System.String

Obtain a String that represents the current Object

Описание методов

Abort() публичный Метод

Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread. Calling this method usually terminates the thread
public Abort ( ) : void
Результат void

Abort() публичный Метод

Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread while also providing exception information about the thread termination. Calling this method usually terminates the thread.
public Abort ( System stateInfo ) : void
stateInfo System An object that contains application-specific information, such as state, which can be used by the thread being aborted
Результат void

Current() публичный статический Метод

Gets the currently running thread
public static Current ( ) : ThreadClass,
Результат ThreadClass,

Interrupt() публичный Метод

Interrupts a thread that is in the WaitSleepJoin thread state
public Interrupt ( ) : void
Результат void

Join() публичный Метод

Blocks the calling thread until a thread terminates
public Join ( ) : void
Результат void

Join() публичный Метод

Blocks the calling thread until a thread terminates or the specified time elapses
public Join ( long MiliSeconds ) : void
MiliSeconds long Time of wait in milliseconds
Результат void

Join() публичный Метод

Blocks the calling thread until a thread terminates or the specified time elapses
public Join ( long MiliSeconds, int NanoSeconds ) : void
MiliSeconds long Time of wait in milliseconds
NanoSeconds int Time of wait in nanoseconds
Результат void

Resume() публичный Метод

Resumes a thread that has been suspended
public Resume ( ) : void
Результат void

Run() публичный Метод

This method has no functionality unless the method is overridden
public Run ( ) : void
Результат void

Start() публичный Метод

Causes the operating system to change the state of the current thread instance to ThreadState.Running
public Start ( ) : void
Результат void

Suspend() публичный Метод

Suspends the thread, if the thread is already suspended it has no effect
public Suspend ( ) : void
Результат void

ThreadClass() публичный Метод

Initializes a new instance of the ThreadClass class
public ThreadClass ( ) : System
Результат System

ThreadClass() публичный Метод

Initializes a new instance of the Thread class.
public ThreadClass ( System Start ) : System
Start System A ThreadStart delegate that references the methods to be invoked when this thread begins executing
Результат System

ThreadClass() публичный Метод

Initializes a new instance of the Thread class.
public ThreadClass ( System Start, string Name ) : System
Start System A ThreadStart delegate that references the methods to be invoked when this thread begins executing
Name string The name of the thread
Результат System

ThreadClass() публичный Метод

Initializes a new instance of the Thread class.
public ThreadClass ( string Name ) : System
Name string The name of the thread
Результат System

ToString() публичный Метод

Obtain a String that represents the current Object
public ToString ( ) : System.String
Результат System.String