ServerFault 构造函数

初始化 ServerFault 类的新实例。

**命名空间:**System.Runtime.Serialization.Formatters
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
Public Sub New ( _
    exceptionType As String, _
    message As String, _
    stackTrace As String _
)
用法
Dim exceptionType As String
Dim message As String
Dim stackTrace As String

Dim instance As New ServerFault(exceptionType, message, stackTrace)
public ServerFault (
    string exceptionType,
    string message,
    string stackTrace
)
public:
ServerFault (
    String^ exceptionType, 
    String^ message, 
    String^ stackTrace
)
public ServerFault (
    String exceptionType, 
    String message, 
    String stackTrace
)
public function ServerFault (
    exceptionType : String, 
    message : String, 
    stackTrace : String
)

参数

  • exceptionType
    服务器上发生的异常的实例。
  • message
    伴随异常的消息。
  • stackTrace
    在服务器上引发异常的线程的堆栈跟踪。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

ServerFault 类
ServerFault 成员
System.Runtime.Serialization.Formatters 命名空间