Thread.SetCompressedStack(CompressedStack) Método

Definição

Atenção

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

Atenção

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

Aplica um capturado CompressedStack ao tópico atual.

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);
[System.Obsolete("Thread.SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class")]
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("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
[<System.Obsolete("Thread.SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class")>]
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)

Parâmetros

stack
CompressedStack

O CompressedStack objeto a ser aplicado ao thread atual.

Atributos

Exceções

Em todos os casos.

Observações

Atenção

O CAS (Code Access Security) foi preterido em todas as versões do .NET Framework e do .NET. As versões recentes do .NET não respeitam as anotações do CAS e produzem erros se as APIs relacionadas ao CAS forem usadas. Os desenvolvedores devem procurar meios alternativos de realizar tarefas de segurança.

Este método já não é suportado.

Aplica-se a