Thread.UnsafeStart Method
Definition
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.
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기