XmlSchemaInferenceException 构造函数

定义

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

重载

XmlSchemaInferenceException()

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

XmlSchemaInferenceException(String)

使用指定的错误信息初始化 XmlSchemaInferenceException 类的新实例。Initializes a new instance of the XmlSchemaInferenceException class with the error message specified.

XmlSchemaInferenceException(SerializationInfo, StreamingContext)

使用指定的 XmlSchemaInferenceExceptionSerializationInfo 对象(这两个对象包含 StreamingContext 的所有属性)初始化 XmlSchemaInferenceException 类的新实例。Initializes a new instance of the XmlSchemaInferenceException class with the SerializationInfo and StreamingContext objects specified that contain all the properties of the XmlSchemaInferenceException.

XmlSchemaInferenceException(String, Exception)

用指定的错误信息和导致指定的 XmlSchemaInferenceException 的原始 Exception 初始化 XmlSchemaInferenceException 类的新实例。Initializes a new instance of the XmlSchemaInferenceException class with the error message specified and the original Exception that caused the XmlSchemaInferenceException specified.

XmlSchemaInferenceException(String, Exception, Int32, Int32)

用指定的错误信息、导致指定的 XmlSchemaInferenceException 的原始 Exception 和指定 XML 文档中错误的行号和行位置初始化 XmlSchemaInferenceException 类的新实例。Initializes a new instance of the XmlSchemaInferenceException class with the error message specified, the original Exception that caused the XmlSchemaInferenceException specified, and the line number and line position of the error in the XML document specified.

XmlSchemaInferenceException()

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

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

适用于

XmlSchemaInferenceException(String)

使用指定的错误信息初始化 XmlSchemaInferenceException 类的新实例。Initializes a new instance of the XmlSchemaInferenceException class with the error message specified.

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

参数

message
String

对错误的说明。A description of the error.

适用于

XmlSchemaInferenceException(SerializationInfo, StreamingContext)

使用指定的 XmlSchemaInferenceExceptionSerializationInfo 对象(这两个对象包含 StreamingContext 的所有属性)初始化 XmlSchemaInferenceException 类的新实例。Initializes a new instance of the XmlSchemaInferenceException class with the SerializationInfo and StreamingContext objects specified that contain all the properties of the XmlSchemaInferenceException.

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

参数

注解

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

另请参阅

适用于

XmlSchemaInferenceException(String, Exception)

用指定的错误信息和导致指定的 XmlSchemaInferenceException 的原始 Exception 初始化 XmlSchemaInferenceException 类的新实例。Initializes a new instance of the XmlSchemaInferenceException class with the error message specified and the original Exception that caused the XmlSchemaInferenceException specified.

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

参数

message
String

对错误的说明。A description of the error.

innerException
Exception

一个 Exception 对象,它包含导致 XmlSchemaInferenceException 的原始异常。An Exception object containing the original exception that caused the XmlSchemaInferenceException.

适用于

XmlSchemaInferenceException(String, Exception, Int32, Int32)

用指定的错误信息、导致指定的 XmlSchemaInferenceException 的原始 Exception 和指定 XML 文档中错误的行号和行位置初始化 XmlSchemaInferenceException 类的新实例。Initializes a new instance of the XmlSchemaInferenceException class with the error message specified, the original Exception that caused the XmlSchemaInferenceException specified, and the line number and line position of the error in the XML document specified.

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

参数

message
String

对错误的说明。A description of the error.

innerException
Exception

一个 Exception 对象,它包含导致 XmlSchemaInferenceException 的原始异常。An Exception object containing the original exception that caused the XmlSchemaInferenceException.

lineNumber
Int32

XML 文档中的行号,导致 XmlSchemaInferenceExceptionThe line number in the XML document that caused the XmlSchemaInferenceException.

linePosition
Int32

XML 文档中的行位置,导致 XmlSchemaInferenceExceptionThe line position in the XML document that caused the XmlSchemaInferenceException.

适用于