_Exception.StackTrace 属性

定义

为 COM 对象提供对 StackTrace 属性的与版本无关的访问。Provides COM objects with version-independent access to the StackTrace property.

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

属性值

一个字符串,它描述调用堆栈的内容,其中首先显示最近的方法调用。A string that describes the contents of the call stack, with the most recent method call appearing first.

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。This method is for access to managed classes from unmanaged code and should not be called from managed code.

@No__t-0 属性在引发当前异常时获取调用堆栈上的帧的字符串表示形式。The Exception.StackTrace property gets a string representation of the frames on the call stack at the time the current exception was thrown.

适用于

另请参阅