XmlValidationException 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.
Overloads
XmlValidationException() |
Initializes a new instance of the XmlValidationException class. |
XmlValidationException(String) |
Initializes a new instance of the XmlValidationException class with a specified error message. |
XmlValidationException(SerializationInfo, StreamingContext) |
Initializes a new instance of the XmlValidationException class. |
XmlValidationException(String, Exception) |
Initializes a new instance of the XmlValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
XmlValidationException()
Initializes a new instance of the XmlValidationException class.
public XmlValidationException ();
Public Sub New ()
Applies to
XmlValidationException(String)
Initializes a new instance of the XmlValidationException class with a specified error message.
public XmlValidationException (string message);
new Microsoft.IdentityModel.Xml.XmlValidationException : string -> Microsoft.IdentityModel.Xml.XmlValidationException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Applies to
XmlValidationException(SerializationInfo, StreamingContext)
Initializes a new instance of the XmlValidationException class.
protected XmlValidationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.IdentityModel.Xml.XmlValidationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.IdentityModel.Xml.XmlValidationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
the SerializationInfo that holds the serialized object data.
- context
- StreamingContext
The contextual information about the source or destination.
Applies to
XmlValidationException(String, Exception)
Initializes a new instance of the XmlValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public XmlValidationException (string message, Exception innerException);
new Microsoft.IdentityModel.Xml.XmlValidationException : string * Exception -> Microsoft.IdentityModel.Xml.XmlValidationException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The error message that explains the reason for the exception.
- innerException
- Exception
The Exception that is the cause of the current exception, or a null reference if no inner exception is specified.