Share via


XmlSchemaInferenceException 构造函数

定义

初始化 XmlSchemaInferenceException 类的新实例。

重载

XmlSchemaInferenceException()

初始化 XmlSchemaInferenceException 类的新实例。

XmlSchemaInferenceException(String)

使用指定的错误信息初始化 XmlSchemaInferenceException 类的新实例。

XmlSchemaInferenceException(SerializationInfo, StreamingContext)
已过时.

使用指定的 XmlSchemaInferenceExceptionSerializationInfo 对象(这两个对象包含 StreamingContext 的所有属性)初始化 XmlSchemaInferenceException 类的新实例。

XmlSchemaInferenceException(String, Exception)

用指定的错误信息和导致指定的 XmlSchemaInferenceException 的原始 Exception 初始化 XmlSchemaInferenceException 类的新实例。

XmlSchemaInferenceException(String, Exception, Int32, Int32)

用指定的错误信息、导致指定的 XmlSchemaInferenceException 的原始 Exception 和指定 XML 文档中错误的行号和行位置初始化 XmlSchemaInferenceException 类的新实例。

XmlSchemaInferenceException()

Source:
XmlSchemaInferenceException.cs
Source:
XmlSchemaInferenceException.cs
Source:
XmlSchemaInferenceException.cs

初始化 XmlSchemaInferenceException 类的新实例。

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

适用于

XmlSchemaInferenceException(String)

Source:
XmlSchemaInferenceException.cs
Source:
XmlSchemaInferenceException.cs
Source:
XmlSchemaInferenceException.cs

使用指定的错误信息初始化 XmlSchemaInferenceException 类的新实例。

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

对错误的说明。

适用于

XmlSchemaInferenceException(SerializationInfo, StreamingContext)

Source:
XmlSchemaInferenceException.cs
Source:
XmlSchemaInferenceException.cs
Source:
XmlSchemaInferenceException.cs

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

使用指定的 XmlSchemaInferenceExceptionSerializationInfo 对象(这两个对象包含 StreamingContext 的所有属性)初始化 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);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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)

参数

属性

注解

派生类构造函数调用此构造函数来初始化此类型中的状态。

另请参阅

适用于

XmlSchemaInferenceException(String, Exception)

Source:
XmlSchemaInferenceException.cs
Source:
XmlSchemaInferenceException.cs
Source:
XmlSchemaInferenceException.cs

用指定的错误信息和导致指定的 XmlSchemaInferenceException 的原始 Exception 初始化 XmlSchemaInferenceException 类的新实例。

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

对错误的说明。

innerException
Exception

一个 Exception 对象,它包含导致 XmlSchemaInferenceException 的原始异常。

适用于

XmlSchemaInferenceException(String, Exception, Int32, Int32)

Source:
XmlSchemaInferenceException.cs
Source:
XmlSchemaInferenceException.cs
Source:
XmlSchemaInferenceException.cs

用指定的错误信息、导致指定的 XmlSchemaInferenceException 的原始 Exception 和指定 XML 文档中错误的行号和行位置初始化 XmlSchemaInferenceException 类的新实例。

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

对错误的说明。

innerException
Exception

一个 Exception 对象,它包含导致 XmlSchemaInferenceException 的原始异常。

lineNumber
Int32

XML 文档中的行号,导致 XmlSchemaInferenceException

linePosition
Int32

XML 文档中的行位置,导致 XmlSchemaInferenceException

适用于