Thread.SetCompressedStack(CompressedStack) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Varning
Code Access Security is not supported or honored by the runtime.
Varning
Thread.SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class
Tillämpar en insamlad CompressedStack på den aktuella tråden.
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)
Parametrar
- stack
- CompressedStack
Det CompressedStack objekt som ska tillämpas på den aktuella tråden.
- Attribut
Undantag
I samtliga fall.
Kommentarer
Caution
Code Access Security (CAS) har föråldrats i alla versioner av .NET Framework och .NET. De senaste versionerna av .NET följer inte CAS-anteckningar och skapar fel om CAS-relaterade API:er används. Utvecklare bör söka alternativa sätt att utföra säkerhetsuppgifter.
Den här metoden stöds inte längre.