XmlSchemaValidationException 构造函数

定义

初始化 XmlSchemaValidationException 类的新实例。

重载

XmlSchemaValidationException()

初始化 XmlSchemaValidationException 类的新实例。

XmlSchemaValidationException(String)

用指定的异常消息初始化 XmlSchemaValidationException 类的新实例。

XmlSchemaValidationException(SerializationInfo, StreamingContext)
已过时.

使用指定的 XmlSchemaValidationExceptionSerializationInfo 对象初始化 StreamingContext 类的一个新实例。

XmlSchemaValidationException(String, Exception)

使用异常消息和导致此指定的异常的原始 XmlSchemaValidationException 对象初始化 Exception 类的新实例。

XmlSchemaValidationException(String, Exception, Int32, Int32)

使用指定的异常消息和导致此指定异常的原始 XmlSchemaValidationException 对象、XML 的行号和行位置初始化 Exception 类的新实例。

XmlSchemaValidationException()

Source:
XmlSchemaValidationException.cs
Source:
XmlSchemaValidationException.cs
Source:
XmlSchemaValidationException.cs

初始化 XmlSchemaValidationException 类的新实例。

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

适用于

XmlSchemaValidationException(String)

Source:
XmlSchemaValidationException.cs
Source:
XmlSchemaValidationException.cs
Source:
XmlSchemaValidationException.cs

用指定的异常消息初始化 XmlSchemaValidationException 类的新实例。

public:
 XmlSchemaValidationException(System::String ^ message);
public XmlSchemaValidationException (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 说明。

适用于

XmlSchemaValidationException(SerializationInfo, StreamingContext)

Source:
XmlSchemaValidationException.cs
Source:
XmlSchemaValidationException.cs
Source:
XmlSchemaValidationException.cs

注意

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

使用指定的 XmlSchemaValidationExceptionSerializationInfo 对象初始化 StreamingContext 类的一个新实例。

protected:
 XmlSchemaValidationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XmlSchemaValidationException (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 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
[<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.XmlSchemaValidationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Schema.XmlSchemaValidationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

属性

注解

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

适用于

XmlSchemaValidationException(String, Exception)

Source:
XmlSchemaValidationException.cs
Source:
XmlSchemaValidationException.cs
Source:
XmlSchemaValidationException.cs

使用异常消息和导致此指定的异常的原始 XmlSchemaValidationException 对象初始化 Exception 类的新实例。

public:
 XmlSchemaValidationException(System::String ^ message, Exception ^ innerException);
public XmlSchemaValidationException (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 说明。

innerException
Exception

导致该异常的原始 Exception 对象。

适用于

XmlSchemaValidationException(String, Exception, Int32, Int32)

Source:
XmlSchemaValidationException.cs
Source:
XmlSchemaValidationException.cs
Source:
XmlSchemaValidationException.cs

使用指定的异常消息和导致此指定异常的原始 XmlSchemaValidationException 对象、XML 的行号和行位置初始化 Exception 类的新实例。

public:
 XmlSchemaValidationException(System::String ^ message, Exception ^ innerException, int lineNumber, int linePosition);
public XmlSchemaValidationException (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 说明。

innerException
Exception

导致该异常的原始 Exception 对象。

lineNumber
Int32

导致该异常的 XML 行号。

linePosition
Int32

导致此异常的 XML 的行位置。

适用于