语言

EndpointNotFoundException 构造函数

定义

初始化 EndpointNotFoundException 类的新实例。

重载

名称 说明
EndpointNotFoundException()

初始化 EndpointNotFoundException 类的新实例。

EndpointNotFoundException(String)

使用指定的错误消息初始化类的新实例 EndpointNotFoundException 。

EndpointNotFoundException(SerializationInfo, StreamingContext)

使用数据初始化类的新实例,该实例 EndpointNotFoundException 指定流的源和目标以及序列化异常所需的信息。

EndpointNotFoundException(String, Exception)

使用指定的错误消息和导致当前异常的内部异常初始化类的新实例 EndpointNotFoundException 。

注解

如果要向用户传递错误消息,请使用 EndpointNotFoundException(String) 构造函数。

如果要将错误消息和对内部异常的引用传递给用户,请使用 EndpointNotFoundException(String, Exception) 构造函数。

如果要传递序列化信息和流式处理上下文,请使用 EndpointNotFoundException(SerializationInfo, StreamingContext) 构造函数。

EndpointNotFoundException()

Source:
EndpointNotFoundException.cs
Source:
EndpointNotFoundException.cs
Source:
EndpointNotFoundException.cs

初始化 EndpointNotFoundException 类的新实例。

public:
 EndpointNotFoundException();
public EndpointNotFoundException();
Public Sub New ()

适用于

EndpointNotFoundException(String)

Source:
EndpointNotFoundException.cs
Source:
EndpointNotFoundException.cs
Source:
EndpointNotFoundException.cs

使用指定的错误消息初始化类的新实例 EndpointNotFoundException 。

public:
 EndpointNotFoundException(System::String ^ message);
public EndpointNotFoundException(string message);
new System.ServiceModel.EndpointNotFoundException : string -> System.ServiceModel.EndpointNotFoundException
Public Sub New (message As String)

参数

message
String

解释异常原因的错误消息。

注解

如果要向用户传递错误消息,请使用此构造函数。 消息参数的内容应该对预期用户理解。

适用于

EndpointNotFoundException(SerializationInfo, StreamingContext)

Source:
EndpointNotFoundException.cs
Source:
EndpointNotFoundException.cs
Source:
EndpointNotFoundException.cs

使用数据初始化类的新实例,该实例 EndpointNotFoundException 指定流的源和目标以及序列化异常所需的信息。

protected:
 EndpointNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected EndpointNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.EndpointNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.EndpointNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

SerializationInfo包含序列化异常所需的所有数据。

context
StreamingContext

指定 StreamingContext 流的源和目标。

注解

在反序列化期间调用此构造函数以重新构造通过流传输的异常对象。

适用于

EndpointNotFoundException(String, Exception)

Source:
EndpointNotFoundException.cs
Source:
EndpointNotFoundException.cs
Source:
EndpointNotFoundException.cs

使用指定的错误消息和导致当前异常的内部异常初始化类的新实例 EndpointNotFoundException 。

public:
 EndpointNotFoundException(System::String ^ message, Exception ^ innerException);
public EndpointNotFoundException(string message, Exception innerException);
new System.ServiceModel.EndpointNotFoundException : string * Exception -> System.ServiceModel.EndpointNotFoundException
Public Sub New (message As String, innerException As Exception)

参数

message
String

解释异常原因的错误消息。

innerException
Exception

Exception导致引发当前异常的原因。

注解

如果要将错误消息和有关内部异常的信息传递给用户,请使用此构造函数。 消息参数的内容应该对预期用户理解。

作为上一个异常的直接结果引发的异常可以包含对属性中上一个异常的 InnerException 引用。 如果该InnerException属性未向构造函数提供内部异常值,则null此属性将返回传递给构造函数的相同值,或者Nothing返回引用(InnerException在 Visual Basic 中)。

适用于