MessageSecurityException 构造函数

定义

初始化 MessageSecurityException 类的新实例。

重载

MessageSecurityException()

初始化 MessageSecurityException 类的空实例。

MessageSecurityException(String)

使用错误字符串初始化 MessageSecurityException 类的新实例。

MessageSecurityException(SerializationInfo, StreamingContext)

MessageSecurityExceptionSerializationInfo 类的指定实例初始化 StreamingContext 类的新实例。

MessageSecurityException(String, Exception)

使用错误字符串和对导致此异常的内部异常的引用来初始化 MessageSecurityException 类的新实例。

MessageSecurityException()

Source:
MessageSecurityException.cs
Source:
MessageSecurityException.cs
Source:
MessageSecurityException.cs

初始化 MessageSecurityException 类的空实例。

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

适用于

MessageSecurityException(String)

Source:
MessageSecurityException.cs
Source:
MessageSecurityException.cs
Source:
MessageSecurityException.cs

使用错误字符串初始化 MessageSecurityException 类的新实例。

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

参数

message
String

错误消息。

适用于

MessageSecurityException(SerializationInfo, StreamingContext)

Source:
MessageSecurityException.cs
Source:
MessageSecurityException.cs
Source:
MessageSecurityException.cs

MessageSecurityExceptionSerializationInfo 类的指定实例初始化 StreamingContext 类的新实例。

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

参数

info
SerializationInfo

SerializationInfo 实例,它包含序列化新的 MessageSecurityException 实例所需的信息。

context
StreamingContext

StreamingContext,它包含与新的 MessageSecurityException 实例关联的序列化流的源。

适用于

MessageSecurityException(String, Exception)

Source:
MessageSecurityException.cs
Source:
MessageSecurityException.cs
Source:
MessageSecurityException.cs

使用错误字符串和对导致此异常的内部异常的引用来初始化 MessageSecurityException 类的新实例。

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

参数

message
String

错误消息。

innerException
Exception

内部异常引用。

适用于