XmlSchemaException コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
すべてのXmlSchemaExceptionプロパティを、指定されたSerializationInfoのStreamingContext クラスにストリーミングします。
オーバーロード
| 名前 | 説明 |
|---|---|
| XmlSchemaException() |
XmlSchemaException クラスの新しいインスタンスを初期化します。 |
| XmlSchemaException(String) |
例外メッセージを指定して、 XmlSchemaException クラスの新しいインスタンスを初期化します。 |
| XmlSchemaException(SerializationInfo, StreamingContext) |
古い.
指定した |
| XmlSchemaException(String, Exception) |
例外メッセージと、この例外が指定された原因となった元のXmlSchemaException オブジェクトを使用して、Exception クラスの新しいインスタンスを初期化します。 |
| XmlSchemaException(String, Exception, Int32, Int32) |
例外メッセージを指定し、この例外の原因となる XML の元のXmlSchemaException オブジェクト、行番号、および行位置を指定して、Exception クラスの新しいインスタンスを初期化します。 |
XmlSchemaException()
XmlSchemaException クラスの新しいインスタンスを初期化します。
public:
XmlSchemaException();
public XmlSchemaException();
Public Sub New ()
適用対象
XmlSchemaException(String)
例外メッセージを指定して、 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)
注意事項
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
指定したXmlSchemaExceptionとSerializationInfoのすべてのプロパティを含む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 オブジェクトを使用して、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 説明。
適用対象
XmlSchemaException(String, Exception, Int32, Int32)
例外メッセージを指定し、この例外の原因となる 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 説明。
- lineNumber
- Int32
この例外の原因となった XML の行番号。
- linePosition
- Int32
この例外の原因となった XML の行位置。