Thread.SetCompressedStack(CompressedStack) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Thread.SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class
將捕獲 CompressedStack 的執行緒套用到目前執行緒。
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")]
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);
member this.SetCompressedStack : System.Threading.CompressedStack -> unit
[<System.Obsolete("Thread.SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class")>]
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要套用到目前執行緒的物件。
- 屬性
例外狀況
無論哪種情況。
備註
Caution
.NET Framework 和 .NET 的所有版本中,代碼存取安全性(CAS)已被棄用。 最新版本的 .NET 不會接受 CAS 註釋,如果使用 CAS 相關 API,則會產生錯誤。 開發人員應尋求其他方法來完成安全任務。
此方法現已不再支援。