Share via


Thread.SetCompressedStack(CompressedStack) 方法

定義

警告

Thread.SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class

警告

Code Access Security is not supported or honored by the runtime.

將擷取的 CompressedStack 套用到目前的執行緒。

public:
 void SetCompressedStack(System::Threading::CompressedStack ^ stack);
[System.Obsolete("Thread.SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class")]
public void SetCompressedStack (System.Threading.CompressedStack stack);
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public void SetCompressedStack (System.Threading.CompressedStack stack);
public void SetCompressedStack (System.Threading.CompressedStack stack);
[System.Obsolete("Thread.SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class")]
[System.Security.SecurityCritical]
public void SetCompressedStack (System.Threading.CompressedStack stack);
[<System.Obsolete("Thread.SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class")>]
member this.SetCompressedStack : System.Threading.CompressedStack -> unit
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.SetCompressedStack : System.Threading.CompressedStack -> unit
member this.SetCompressedStack : System.Threading.CompressedStack -> unit
[<System.Obsolete("Thread.SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class")>]
[<System.Security.SecurityCritical>]
member this.SetCompressedStack : System.Threading.CompressedStack -> unit
Public Sub SetCompressedStack (stack As CompressedStack)

參數

stack
CompressedStack

要套用到目前執行緒的 CompressedStack 物件。

屬性

例外狀況

在所有情況下。

備註

不再支援此方法。

適用於