CallbackDebugBehavior(Boolean) 构造函数

定义

初始化 CallbackDebugBehavior 类的新实例。Initializes a new instance of the CallbackDebugBehavior class.

public:
 CallbackDebugBehavior(bool includeExceptionDetailInFaults);
public CallbackDebugBehavior (bool includeExceptionDetailInFaults);
new System.ServiceModel.Description.CallbackDebugBehavior : bool -> System.ServiceModel.Description.CallbackDebugBehavior
Public Sub New (includeExceptionDetailInFaults As Boolean)

参数

includeExceptionDetailInFaults
Boolean

控制 WCF 回调对象是否在发送回服务的 SOAP 错误详细信息中包括托管异常信息。Controls whether a WCF callback object includes managed exception information in the detail of the SOAP faults sent back to the service.

注解

构造函数创建 CallbackDebugBehavior 对象,在该对象中,IncludeExceptionDetailInFaults 属性的值为 includeExceptionDetailInFaults 的值。The constructor creates a CallbackDebugBehavior object in which the value of the IncludeExceptionDetailInFaults property is the value of includeExceptionDetailInFaults.

适用于