_Exception.StackTrace _Exception.StackTrace _Exception.StackTrace _Exception.StackTrace Property

定義

為 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.

備註

這個方法會從 unmanaged 程式碼會存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code and should not be called from managed code.

Exception.StackTrace屬性取得呼叫堆疊上框架的字串表示,在擲回目前例外狀況的時間。The Exception.StackTrace property gets a string representation of the frames on the call stack at the time the current exception was thrown.

適用於

另請參閱