BadImageFormatException.ToString 方法
定义
返回该异常的完全限定名,还可能返回错误消息、内部异常的名称和堆栈跟踪。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. 如果这些成员中的任何一个是 (Visual Basic) 的空引用 Nothing ,则返回的字符串中不包含其值。If any of these members is a null reference (Nothing in Visual Basic), its value is not included in the returned string.