Thread.UnsafeStart Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
- 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
.NET 9 және басқа нұсқалар
Өнім | Нұсқалар |
---|---|
.NET | 6, 7, 8, 9 |
- 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
.NET 9 және басқа нұсқалар
Өнім | Нұсқалар |
---|---|
.NET | 6, 7, 8, 9 |
.NET кері байланысы
.NET — бастапқы коды ашық жоба. Пікір қалдыру үшін сілтемені таңдаңыз: