CompressedStack.Capture Método

Definição

Captura a pilha compactada do thread atual.Captures the compressed stack from the current thread.

public:
 static System::Threading::CompressedStack ^ Capture();
public static System.Threading.CompressedStack Capture ();
static member Capture : unit -> System.Threading.CompressedStack
Public Shared Function Capture () As CompressedStack

Retornos

CompressedStack

Um objeto CompressedStack.A CompressedStack object.

Comentários

Captura todas as informações de segurança de acesso do código na pilha de chamadas, Deny como Assert ações e, em um formato compactado.Captures all the code access security information on the call stack, such as Deny and Assert actions, in a compressed format. Por exemplo, se uma Deny ação tiver duas molduras de pilha acima do quadro atual e não houver outras anotações de segurança de acesso ao código entre lá e o quadro atual, a pilha compactada registrará apenas essas informações, sem a necessidade de serializar toda a pilha de chamadas.For example, if a Deny action is two stack frames up from the current frame and there are no other code access security annotations between there and the current frame, the compressed stack records only that information, without having to serialize the entire call stack.

A pilha compactada capturada pode ser aplicada a outro thread.The captured compressed stack can be applied to another thread.

Aplica-se a