Thread.SetCompressedStack(CompressedStack) Método

Definición

Precaución

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

Precaución

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

Aplica un objeto capturado al subproceso CompressedStack actual.

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

Objeto CompressedStack que se va a aplicar al subproceso actual.

Atributos

Excepciones

En todos los casos.

Comentarios

Caution

La seguridad de acceso al código (CAS) está en desuso en todas las versiones de .NET Framework y .NET. Las versiones recientes de .NET no respetan las anotaciones de CAS y producen errores si se utilizan las 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