ExceptionDetail 类

定义

表示错误详细信息。Represents fault detail information.

public ref class ExceptionDetail
[System.Runtime.Serialization.DataContract]
public class ExceptionDetail
[<System.Runtime.Serialization.DataContract>]
type ExceptionDetail = class
Public Class ExceptionDetail
继承
ExceptionDetail
属性

注解

ExceptionDetail 类是当某个服务将 System.ServiceModel.FaultException 作为将 ServiceBehaviorAttribute.IncludeExceptionDetailInFaultsServiceDebugBehavior.IncludeExceptionDetailInFaults 属性设置为 true 的结果发送时用作错误详细信息对象的类型参数。The ExceptionDetail class is the type parameter used as the fault detail object when a System.ServiceModel.FaultException is sent by a service as a result of setting the ServiceBehaviorAttribute.IncludeExceptionDetailInFaults or the ServiceDebugBehavior.IncludeExceptionDetailInFaults property to true.

若要发送 ExceptionDetail 对象,类型必须是可序列化的。To send a ExceptionDetail object the type must be serializable. 有关序列化选项的详细信息,请参阅 在服务协定中指定数据传输For more information on serialization options, see Specifying Data Transfer in Service Contracts.

构造函数

ExceptionDetail(Exception)

初始化异常中的 ExceptionDetail 类的新实例。Initializes a new instance of the ExceptionDetail class from the exception.

属性

HelpLink

获取或设置传递到构造函数的异常中的帮助链接。Gets or sets the help link from the exception passed to the constructor.

InnerException

获取或设置表示内部异常的 ExceptionDetail 对象。Gets or sets the ExceptionDetail object that represents the inner exception.

Message

获取或设置传递到构造函数的异常中的消息。Gets or sets the message from the exception passed to the constructor.

StackTrace

获取或设置传递到构造函数的异常中的堆栈跟踪信息。Gets or sets the stack trace information from the exception passed to the constructor.

Type

获取或设置传递到构造函数的异常的类型字符串。Gets or sets the type string for the exception passed to the constructor.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回传递到构造函数的异常的详细信息。Returns the exception detail information for the exception passed to the constructor.

适用于