Thread.SetCompressedStack(CompressedStack) Método

Definición

Precaución

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

Precaución

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

Aplica un objeto CompressedStack capturado al subproceso actual.

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)

Parámetros

stack
CompressedStack

Objeto CompressedStack que va a aplicarse al subproceso actual.

Atributos

Excepciones

En todos los casos.

Comentarios

Precaución

La seguridad de acceso del código (CAS) ha quedado en desuso en todas las versiones de .NET Framework y .NET. Las versiones recientes de .NET no respetan las anotaciones de CAS y generan errores si se usan API relacionadas con CAS. Los desarrolladores deben buscar medios alternativos para realizar tareas de seguridad.

Este método ya no se admite.

Se aplica a