ServicedComponentException 构造函数  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ServicedComponentException 类的新实例。
重载
ServicedComponentException()
初始化 ServicedComponentException 类的新实例。
public:
 ServicedComponentException();public ServicedComponentException ();Public Sub New ()适用于
ServicedComponentException(String)
用指定的错误消息初始化 ServicedComponentException 类的新实例。
public:
 ServicedComponentException(System::String ^ message);public ServicedComponentException (string message);new System.EnterpriseServices.ServicedComponentException : string -> System.EnterpriseServices.ServicedComponentExceptionPublic Sub New (message As String)参数
- message
- String
引发异常时显示到客户端的消息。
适用于
ServicedComponentException(String, Exception)
初始化 ServicedComponentException 类的新实例。
public:
 ServicedComponentException(System::String ^ message, Exception ^ innerException);public ServicedComponentException (string message, Exception innerException);new System.EnterpriseServices.ServicedComponentException : string * Exception -> System.EnterpriseServices.ServicedComponentExceptionPublic Sub New (message As String, innerException As Exception)参数
- message
- String
引发异常时显示到客户端的消息。
- innerException
- Exception
引发了当前异常的 InnerException(如果有)。