CustomErrorsModes 枚举

定义

指定如何处理自定义错误。Specifies how custom errors are handled.

public enum class CustomErrorsModes
[System.Runtime.InteropServices.ComVisible(true)]
public enum CustomErrorsModes
type CustomErrorsModes = 
Public Enum CustomErrorsModes
继承
CustomErrorsModes
属性

字段

Off 1

所有调用方均收到完整的异常信息。All callers receive complete exception information.

On 0

所有调用方均接收筛选过的异常信息。All callers receive filtered exception information.

RemoteOnly 2

本地调用方收到完整的异常信息,远程调用方收到筛选后的异常信息。Local callers receive complete exception information; remote callers receive filtered exception information.

注解

完整的异常信息包括确切的服务器异常信息和服务器堆栈跟踪信息。Complete exception information includes the exact server exception and the server stack trace. 筛选后的信息包括标准的远程异常信息,但不包括服务器堆栈跟踪信息。Filtered information includes a standard remoting exception but no server stack trace.

适用于

另请参阅