Uredi

Deli z drugimi prek


XmlSchemaException Constructors

Definition

Streams all the XmlSchemaException properties into the SerializationInfo class for the given StreamingContext.

Overloads

XmlSchemaException()

Initializes a new instance of the XmlSchemaException class.

XmlSchemaException(String)

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

XmlSchemaException(SerializationInfo, StreamingContext)
Obsolete.

Constructs a new XmlSchemaException object with the given SerializationInfo and StreamingContext information that contains all the properties of the XmlSchemaException.

XmlSchemaException(String, Exception)

Initializes a new instance of the XmlSchemaException class with the exception message and original Exception object that caused this exception specified.

XmlSchemaException(String, Exception, Int32, Int32)

Initializes a new instance of the XmlSchemaException class with the exception message specified, and the original Exception object, line number, and line position of the XML that cause this exception specified.

XmlSchemaException()

Source:
XmlSchemaException.cs
Source:
XmlSchemaException.cs
Source:
XmlSchemaException.cs

Initializes a new instance of the XmlSchemaException class.

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

Applies to

XmlSchemaException(String)

Source:
XmlSchemaException.cs
Source:
XmlSchemaException.cs
Source:
XmlSchemaException.cs

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

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

Parameters

message
String

A string description of the error condition.

Applies to

XmlSchemaException(SerializationInfo, StreamingContext)

Source:
XmlSchemaException.cs
Source:
XmlSchemaException.cs
Source:
XmlSchemaException.cs

Caution

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

Constructs a new XmlSchemaException object with the given SerializationInfo and StreamingContext information that contains all the properties of the XmlSchemaException.

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

Parameters

info
SerializationInfo

SerializationInfo.

context
StreamingContext

StreamingContext.

Attributes

Applies to

XmlSchemaException(String, Exception)

Source:
XmlSchemaException.cs
Source:
XmlSchemaException.cs
Source:
XmlSchemaException.cs

Initializes a new instance of the XmlSchemaException class with the exception message and original Exception object that caused this exception specified.

public:
 XmlSchemaException(System::String ^ message, Exception ^ innerException);
public XmlSchemaException (string? message, Exception? innerException);
public XmlSchemaException (string message, Exception innerException);
new System.Xml.Schema.XmlSchemaException : string * Exception -> System.Xml.Schema.XmlSchemaException
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

XmlSchemaException(String, Exception, Int32, Int32)

Source:
XmlSchemaException.cs
Source:
XmlSchemaException.cs
Source:
XmlSchemaException.cs

Initializes a new instance of the XmlSchemaException 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:
 XmlSchemaException(System::String ^ message, Exception ^ innerException, int lineNumber, int linePosition);
public XmlSchemaException (string? message, Exception? innerException, int lineNumber, int linePosition);
public XmlSchemaException (string message, Exception innerException, int lineNumber, int linePosition);
new System.Xml.Schema.XmlSchemaException : string * Exception * int * int -> System.Xml.Schema.XmlSchemaException
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