SecurityNegotiationException 构造函数

定义

初始化 SecurityNegotiationException 类的新实例。

重载

SecurityNegotiationException()

初始化 SecurityNegotiationException 类的新实例。

SecurityNegotiationException(String)

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

SecurityNegotiationException(SerializationInfo, StreamingContext)

使用指定的序列化信息和流上下文初始化 SecurityNegotiationException 类的新实例。

SecurityNegotiationException(String, Exception)

使用指定的序列化信息和内部异常初始化 SecurityNegotiationException 类的新实例。

SecurityNegotiationException()

初始化 SecurityNegotiationException 类的新实例。

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

适用于

SecurityNegotiationException(String)

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

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

参数

message
String

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

适用于

SecurityNegotiationException(SerializationInfo, StreamingContext)

使用指定的序列化信息和流上下文初始化 SecurityNegotiationException 类的新实例。

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

参数

info
SerializationInfo

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

context
StreamingContext

指定流的源和目标的 StreamingContext

适用于

SecurityNegotiationException(String, Exception)

使用指定的序列化信息和内部异常初始化 SecurityNegotiationException 类的新实例。

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

参数

message
String

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

innerException
Exception

导致引发当前异常的 Exception

适用于