Uredi

Deli z drugimi prek


XmlSchemaValidationException Constructors

Definition

Initializes a new instance of the XmlSchemaValidationException class.

Overloads

XmlSchemaValidationException()

Initializes a new instance of the XmlSchemaValidationException class.

XmlSchemaValidationException(String)

Initializes a new instance of the XmlSchemaValidationException class with the exception message specified.

XmlSchemaValidationException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the XmlSchemaValidationException class with the SerializationInfo and StreamingContext objects specified.

XmlSchemaValidationException(String, 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)

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()

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

Initializes a new instance of the XmlSchemaValidationException class.

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

Applies to

XmlSchemaValidationException(String)

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

Initializes a new instance of the XmlSchemaValidationException class with the exception message specified.

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)

Parameters

message
String

A string description of the error condition.

Applies to

XmlSchemaValidationException(SerializationInfo, StreamingContext)

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

Caution

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

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);
[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)

Parameters

Attributes

Remarks

This constructor is called by derived class constructors to initialize state in this type.

Applies to

XmlSchemaValidationException(String, Exception)

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

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);
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)

Parameters

message
String

A string description of the error condition.

innerException
Exception

The original Exception object that caused this exception.

Applies to

XmlSchemaValidationException(String, Exception, Int32, Int32)

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

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);
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)

Parameters

message
String

A string description of the error condition.

innerException
Exception

The original Exception object that caused this exception.

lineNumber
Int32

The line number of the XML that caused this exception.

linePosition
Int32

The line position of the XML that caused this exception.

Applies to