BadImageFormatException.ToString BadImageFormatException.ToString BadImageFormatException.ToString BadImageFormatException.ToString Method

定义

返回该异常的完全限定名,还可能返回错误消息、内部异常的名称和堆栈跟踪。Returns the fully qualified name of this exception and possibly the error message, the name of the inner exception, and the stack trace.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

返回

一个字符串,包含该异常的完全限定名,还可能包含错误信息、内部异常的名称和堆栈跟踪。A string containing the fully qualified name of this exception and possibly the error message, the name of the inner exception, and the stack trace.

注解

此方法返回的字符串表示形式包括: 异常的名称、 Message属性的值、对内部异常调用ToString的结果、 FileName属性的值和调用的结果StackTrace.The string representation returned by this method includes the name of the exception, the value of the Message property, the result of calling ToString on the inner exception, the value of the FileName property, and the result of calling StackTrace. 如果这些成员中有任何一个为空引用Nothing (在 Visual Basic 中), 则它的值不会包含在返回的字符串中。If any of these members is a null reference (Nothing in Visual Basic), its value is not included in the returned string.

适用于