MessageSecurityException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the MessageSecurityException class.
Overloads
MessageSecurityException() |
Initializes an empty instance of the MessageSecurityException class. |
MessageSecurityException(String) |
Initializes a new instance of the MessageSecurityException class with an error string. |
MessageSecurityException(SerializationInfo, StreamingContext) |
Initializes a new instance of the MessageSecurityException class from the specified instances of the SerializationInfo and StreamingContext classes. |
MessageSecurityException(String, Exception) |
Initializes a new instance of the MessageSecurityException class with an error string and a reference to the inner exception that is the cause of this exception. |
MessageSecurityException()
- Source:
- MessageSecurityException.cs
- Source:
- MessageSecurityException.cs
Initializes an empty instance of the MessageSecurityException class.
public:
MessageSecurityException();
public MessageSecurityException ();
Public Sub New ()
Applies to
MessageSecurityException(String)
- Source:
- MessageSecurityException.cs
- Source:
- MessageSecurityException.cs
Initializes a new instance of the MessageSecurityException class with an error string.
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)
Parameters
- message
- String
The error message.
Applies to
MessageSecurityException(SerializationInfo, StreamingContext)
- Source:
- MessageSecurityException.cs
- Source:
- MessageSecurityException.cs
Initializes a new instance of the MessageSecurityException class from the specified instances of the SerializationInfo and StreamingContext classes.
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)
Parameters
- info
- SerializationInfo
A SerializationInfo instance that contains the information required to serialize the new MessageSecurityException instance.
- context
- StreamingContext
A StreamingContext that contains the source of the serialized stream associated with the new MessageSecurityException instance.
Applies to
MessageSecurityException(String, Exception)
- Source:
- MessageSecurityException.cs
- Source:
- MessageSecurityException.cs
Initializes a new instance of the MessageSecurityException class with an error string and a reference to the inner exception that is the cause of this exception.
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)
Parameters
- message
- String
The error message.
- innerException
- Exception
The inner exception reference.
Applies to
.NET