Partage via


WebThreadInformation.StackTrace Propriété

Définition

Obtient la trace de la pile gérée par le thread en cours.

public:
 property System::String ^ StackTrace { System::String ^ get(); };
public string StackTrace { get; }
member this.StackTrace : string
Public ReadOnly Property StackTrace As String

Valeur de propriété

String

Trace de la pile gérée par le thread.

Exemples

L’exemple de code suivant montre comment obtenir la trace de la pile de threads.

// Get the stack trace.
public string GetThreadStackTrace()
{
    return (string.Format(
        "Stack trace: {0}",
        ThreadInformation.StackTrace));
}
' Get the stack trace.
Public Function GetThreadStackTrace() As String
     Return String.Format( _
     "Stack trace: {0}", _
     ThreadInformation.StackTrace)
End Function 'GetThreadStackTrace

S’applique à