संपादित करें

इसके माध्यम से साझा किया गया


Thread.UnsafeStart Method

Definition

Overloads

UnsafeStart(Object)

Causes the operating system to change the state of the current instance to Running, and optionally supplies an object containing data to be used by the method the thread executes.

UnsafeStart()

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

UnsafeStart(Object)

Source:
Thread.cs
Source:
Thread.cs
Source:
Thread.cs

Causes the operating system to change the state of the current instance to Running, and optionally supplies an object containing data to be used by the method the thread executes.

public:
 void UnsafeStart(System::Object ^ parameter);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public void UnsafeStart (object? parameter);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.UnsafeStart : obj -> unit
Public Sub UnsafeStart (parameter As Object)

Parameters

parameter
Object

An object that contains data to be used by the method the thread executes.

Attributes

Exceptions

The thread has already been started.

There is not enough memory available to start this thread.

This thread was created using a ThreadStart delegate instead of a ParameterizedThreadStart delegate.

Remarks

Unlike Start(Object), which captures the current ExecutionContext and uses that context to invoke the thread's delegate, UnsafeStart(Object) explicitly avoids capturing the current context and flowing it to the invocation.

Applies to

UnsafeStart()

Source:
Thread.cs
Source:
Thread.cs
Source:
Thread.cs

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

public:
 void UnsafeStart();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public void UnsafeStart ();
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.UnsafeStart : unit -> unit
Public Sub UnsafeStart ()
Attributes

Exceptions

The thread has already been started.

There is not enough memory available to start this thread.

Remarks

Unlike Start(Object), which captures the current ExecutionContext and uses that context to invoke the thread's delegate, UnsafeStart(Object) explicitly avoids capturing the current context and flowing it to the invocation.

Applies to