XmlSchemaException Konstruktor

Definisi

Mengalirkan XmlSchemaException semua properti ke SerializationInfo kelas untuk yang diberikan StreamingContext.

Overload

Nama Deskripsi
XmlSchemaException()

Menginisialisasi instans baru dari kelas XmlSchemaException.

XmlSchemaException(String)

Menginisialisasi instans XmlSchemaException baru kelas dengan pesan pengecualian yang ditentukan.

XmlSchemaException(SerializationInfo, StreamingContext)
Kedaluwarsa.

Membuat objek baru XmlSchemaException dengan informasi yang diberikan SerializationInfo dan StreamingContext berisi semua properti XmlSchemaException.

XmlSchemaException(String, Exception)

Menginisialisasi instans XmlSchemaException baru kelas dengan pesan pengecualian dan objek asli Exception yang menyebabkan pengecualian ini ditentukan.

XmlSchemaException(String, Exception, Int32, Int32)

Menginisialisasi instans XmlSchemaException baru kelas dengan pesan pengecualian yang ditentukan, dan objek asli Exception , nomor baris, dan posisi baris XML yang menyebabkan pengecualian ini ditentukan.

XmlSchemaException()

Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs

Menginisialisasi instans baru dari kelas XmlSchemaException.

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

Berlaku untuk

XmlSchemaException(String)

Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs

Menginisialisasi instans XmlSchemaException baru kelas dengan pesan pengecualian yang ditentukan.

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)

Parameter

message
String

string Deskripsi kondisi kesalahan.

Berlaku untuk

XmlSchemaException(SerializationInfo, StreamingContext)

Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs

Perhatian

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

Membuat objek baru XmlSchemaException dengan informasi yang diberikan SerializationInfo dan StreamingContext berisi semua properti XmlSchemaException.

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);
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}")>]
new System.Xml.Schema.XmlSchemaException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Schema.XmlSchemaException
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)

Parameter

info
SerializationInfo

SerializationInfo.

context
StreamingContext

StreamingContext.

Atribut

Berlaku untuk

XmlSchemaException(String, Exception)

Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs

Menginisialisasi instans XmlSchemaException baru kelas dengan pesan pengecualian dan objek asli Exception yang menyebabkan pengecualian ini ditentukan.

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)

Parameter

message
String

string Deskripsi kondisi kesalahan.

innerException
Exception

Objek asli Exception yang menyebabkan pengecualian ini.

Berlaku untuk

XmlSchemaException(String, Exception, Int32, Int32)

Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs
Sumber:
XmlSchemaException.cs

Menginisialisasi instans XmlSchemaException baru kelas dengan pesan pengecualian yang ditentukan, dan objek asli Exception , nomor baris, dan posisi baris XML yang menyebabkan pengecualian ini ditentukan.

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)

Parameter

message
String

string Deskripsi kondisi kesalahan.

innerException
Exception

Objek asli Exception yang menyebabkan pengecualian ini.

lineNumber
Int32

Nomor baris XML yang menyebabkan pengecualian ini.

linePosition
Int32

Posisi baris XML yang menyebabkan pengecualian ini.

Berlaku untuk