XmlSchemaValidationException 构造函数

定义

初始化 XmlSchemaValidationException 类的新实例。Initializes a new instance of the XmlSchemaValidationException class.

重载

XmlSchemaValidationException()

初始化 XmlSchemaValidationException 类的新实例。Initializes a new instance of the XmlSchemaValidationException class.

XmlSchemaValidationException(String)

用指定的异常消息初始化 XmlSchemaValidationException 类的新实例。Initializes a new instance of the XmlSchemaValidationException class with the exception message specified.

XmlSchemaValidationException(SerializationInfo, StreamingContext)

使用指定的 XmlSchemaValidationExceptionSerializationInfo 对象初始化 StreamingContext 类的一个新实例。Initializes a new instance of the XmlSchemaValidationException class with the SerializationInfo and StreamingContext objects specified.

XmlSchemaValidationException(String, Exception)

使用异常消息和导致此指定的异常的原始 XmlSchemaValidationException 对象初始化 Exception 类的新实例。Initializes a new instance of the XmlSchemaValidationException class with the exception message and original Exception object that caused this exception specified.

XmlSchemaValidationException(String, Exception, Int32, Int32)

使用指定的异常消息和导致此指定异常的原始 XmlSchemaValidationException 对象、XML 的行号和行位置初始化 Exception 类的新实例。Initializes a new instance of the XmlSchemaValidationException class with the exception message specified, and the original Exception object, line number, and line position of the XML that cause this exception specified.

XmlSchemaValidationException()

初始化 XmlSchemaValidationException 类的新实例。Initializes a new instance of the XmlSchemaValidationException class.

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

XmlSchemaValidationException(String)

用指定的异常消息初始化 XmlSchemaValidationException 类的新实例。Initializes a new instance of the XmlSchemaValidationException class with the exception message specified.

public:
 XmlSchemaValidationException(System::String ^ message);
public XmlSchemaValidationException (string message);
new System.Xml.Schema.XmlSchemaValidationException : string -> System.Xml.Schema.XmlSchemaValidationException
Public Sub New (message As String)

参数

message
String

关于错误情况的 string 说明。A string description of the error condition.

XmlSchemaValidationException(SerializationInfo, StreamingContext)

使用指定的 XmlSchemaValidationExceptionSerializationInfo 对象初始化 StreamingContext 类的一个新实例。Initializes a new instance of the XmlSchemaValidationException class with the SerializationInfo and StreamingContext objects specified.

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

参数

info
SerializationInfo

一个 SerializationInfo 对象。A SerializationInfo object.

context
StreamingContext

一个 StreamingContext 对象。A StreamingContext object.

注解

此构造函数由派生类构造函数调用以初始化此类型中的状态。This constructor is called by derived class constructors to initialize state in this type.

XmlSchemaValidationException(String, Exception)

使用异常消息和导致此指定的异常的原始 XmlSchemaValidationException 对象初始化 Exception 类的新实例。Initializes a new instance of the XmlSchemaValidationException class with the exception message and original Exception object that caused this exception specified.

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

参数

message
String

关于错误情况的 string 说明。A string description of the error condition.

innerException
Exception

导致该异常的原始 Exception 对象。The original Exception object that caused this exception.

XmlSchemaValidationException(String, Exception, Int32, Int32)

使用指定的异常消息和导致此指定异常的原始 XmlSchemaValidationException 对象、XML 的行号和行位置初始化 Exception 类的新实例。Initializes a new instance of the XmlSchemaValidationException class with the exception message specified, and the original Exception object, line number, and line position of the XML that cause this exception specified.

public:
 XmlSchemaValidationException(System::String ^ message, Exception ^ innerException, int lineNumber, int linePosition);
public XmlSchemaValidationException (string message, Exception innerException, int lineNumber, int linePosition);
new System.Xml.Schema.XmlSchemaValidationException : string * Exception * int * int -> System.Xml.Schema.XmlSchemaValidationException
Public Sub New (message As String, innerException As Exception, lineNumber As Integer, linePosition As Integer)

参数

message
String

关于错误情况的 string 说明。A string description of the error condition.

innerException
Exception

导致该异常的原始 Exception 对象。The original Exception object that caused this exception.

lineNumber
Int32

导致该异常的 XML 行号。The line number of the XML that caused this exception.

linePosition
Int32

导致此异常的 XML 的行位置。The line position of the XML that caused this exception.

适用于