System.Threading.CompressedStack.GetCompressedStack Method

Gets the compressed stack for the current thread.

Syntax

[System.Security.SecurityCritical]
public static CompressedStack GetCompressedStack ()

Returns

A System.Threading.CompressedStack for the current thread.

Remarks

If security is enabled, the current compressed stack is returned. If security is disabled, CompressedStack.GetCompressedStack returns an empty System.Threading.CompressedStack object.

Note:

This method uses System.Security.Permissions.SecurityAction.LinkDemand to prevent it from being called from untrusted code; only the immediate caller is required to have System.Security.Permissions.SecurityPermissionAttribute.UnmanagedCode permission. For important limitations on using the LinkDemand member, see Demand vs. LinkDemand.

Note:

This member also makes a link demand for the ECMA public key, which is not a valid cryptographic key but a pseudo key. Within the .NET Framework the link demand for the ECMA pseudo key is automatically converted to a link demand for the Microsoft public key. The security exception is based on the Microsoft public key, not the ECMA pseudo key.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0