XmlSchemaException コンストラクター

定義

すべてのXmlSchemaExceptionプロパティを、指定されたSerializationInfoStreamingContext クラスにストリーミングします。

オーバーロード

名前 説明
XmlSchemaException()

XmlSchemaException クラスの新しいインスタンスを初期化します。

XmlSchemaException(String)

例外メッセージを指定して、 XmlSchemaException クラスの新しいインスタンスを初期化します。

XmlSchemaException(SerializationInfo, StreamingContext)
古い.

指定したXmlSchemaExceptionSerializationInfoのすべてのプロパティを含むStreamingContext情報を使用して、新しいXmlSchemaException オブジェクトを構築します。

XmlSchemaException(String, Exception)

例外メッセージと、この例外が指定された原因となった元のXmlSchemaException オブジェクトを使用して、Exception クラスの新しいインスタンスを初期化します。

XmlSchemaException(String, Exception, Int32, Int32)

例外メッセージを指定し、この例外の原因となる XML の元のXmlSchemaException オブジェクト、行番号、および行位置を指定して、Exception クラスの新しいインスタンスを初期化します。

XmlSchemaException()

ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs

XmlSchemaException クラスの新しいインスタンスを初期化します。

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

適用対象

XmlSchemaException(String)

ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs

例外メッセージを指定して、 XmlSchemaException クラスの新しいインスタンスを初期化します。

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)

パラメーター

message
String

エラー条件の string 説明。

適用対象

XmlSchemaException(SerializationInfo, StreamingContext)

ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs

注意事項

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

指定したXmlSchemaExceptionSerializationInfoのすべてのプロパティを含むStreamingContext情報を使用して、新しい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)

パラメーター

info
SerializationInfo

SerializationInfo。

context
StreamingContext

StreamingContext。

属性

適用対象

XmlSchemaException(String, Exception)

ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs

例外メッセージと、この例外が指定された原因となった元のXmlSchemaException オブジェクトを使用して、Exception クラスの新しいインスタンスを初期化します。

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)

パラメーター

message
String

エラー条件の string 説明。

innerException
Exception

この例外の原因となった元の Exception オブジェクト。

適用対象

XmlSchemaException(String, Exception, Int32, Int32)

ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs
ソース:
XmlSchemaException.cs

例外メッセージを指定し、この例外の原因となる XML の元のXmlSchemaException オブジェクト、行番号、および行位置を指定して、Exception クラスの新しいインスタンスを初期化します。

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)

パラメーター

message
String

エラー条件の string 説明。

innerException
Exception

この例外の原因となった元の Exception オブジェクト。

lineNumber
Int32

この例外の原因となった XML の行番号。

linePosition
Int32

この例外の原因となった XML の行位置。

適用対象