FileLoadException.ToString 方法

定义

返回当前异常的完全限定名,还可能返回错误信息、内部异常的名称和堆栈跟踪。Returns the fully qualified name of the current 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

返回

String

一个字符串,它包含此异常的完全限定名,还可能包含错误信息、内部异常的名称和堆栈跟踪(取决于所使用的 FileLoadException 构造函数)。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, depending on which FileLoadException constructor is used.

注解

此方法重写 ToStringThis method overrides ToString.

此方法返回的字符串表示形式包括异常的名称、Message 的值 FileName 属性的值以及调用 StackTrace的结果。The string representation returned by this method includes the name of the exception, the value of the Message the value of the FileName property, and the result of calling StackTrace. 如果其中任何一个成员为 null 引用,则其值不包含在返回的字符串中。If any of these members is a null reference, its value is not included in the returned string.

适用于

另请参阅