XmlSchemaInferenceException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 XmlSchemaInferenceException 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| XmlSchemaInferenceException() |
初始化 XmlSchemaInferenceException 类的新实例。 |
| XmlSchemaInferenceException(String) |
使用指定的错误消息初始化类的新实例 XmlSchemaInferenceException 。 |
| XmlSchemaInferenceException(SerializationInfo, StreamingContext) |
已过时.
使用XmlSchemaInferenceException指定的对象SerializationInfo初始化类的新实例,该实例StreamingContext包含该XmlSchemaInferenceException类的所有属性。 |
| XmlSchemaInferenceException(String, Exception) |
使用指定的错误消息和导致XmlSchemaInferenceException指定的原始Exception实例初始化类的新实例XmlSchemaInferenceException。 |
| XmlSchemaInferenceException(String, Exception, Int32, Int32) |
使用指定的错误消息、导致XmlSchemaInferenceException指定的原始Exception实例以及指定的 XML 文档中错误的行号和行号和行位置初始化类的新实例XmlSchemaInferenceException。 |
XmlSchemaInferenceException()
初始化 XmlSchemaInferenceException 类的新实例。
public:
XmlSchemaInferenceException();
public XmlSchemaInferenceException();
Public Sub New ()
适用于
XmlSchemaInferenceException(String)
使用指定的错误消息初始化类的新实例 XmlSchemaInferenceException 。
public:
XmlSchemaInferenceException(System::String ^ message);
public XmlSchemaInferenceException(string message);
new System.Xml.Schema.XmlSchemaInferenceException : string -> System.Xml.Schema.XmlSchemaInferenceException
Public Sub New (message As String)
参数
- message
- String
对错误的说明。
适用于
XmlSchemaInferenceException(SerializationInfo, StreamingContext)
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
使用XmlSchemaInferenceException指定的对象SerializationInfo初始化类的新实例,该实例StreamingContext包含该XmlSchemaInferenceException类的所有属性。
protected:
XmlSchemaInferenceException(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 XmlSchemaInferenceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected XmlSchemaInferenceException(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.XmlSchemaInferenceException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Schema.XmlSchemaInferenceException
new System.Xml.Schema.XmlSchemaInferenceException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.Schema.XmlSchemaInferenceException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
- context
- StreamingContext
StreamingContext 对象。
- 属性
注解
此构造函数由派生类构造函数调用,以初始化此类型中的状态。
另请参阅
适用于
XmlSchemaInferenceException(String, Exception)
使用指定的错误消息和导致XmlSchemaInferenceException指定的原始Exception实例初始化类的新实例XmlSchemaInferenceException。
public:
XmlSchemaInferenceException(System::String ^ message, Exception ^ innerException);
public XmlSchemaInferenceException(string message, Exception? innerException);
public XmlSchemaInferenceException(string message, Exception innerException);
new System.Xml.Schema.XmlSchemaInferenceException : string * Exception -> System.Xml.Schema.XmlSchemaInferenceException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
对错误的说明。
- innerException
- Exception
一个 Exception 对象,该对象包含导致 XmlSchemaInferenceException该异常的原始异常。
适用于
XmlSchemaInferenceException(String, Exception, Int32, Int32)
使用指定的错误消息、导致XmlSchemaInferenceException指定的原始Exception实例以及指定的 XML 文档中错误的行号和行号和行位置初始化类的新实例XmlSchemaInferenceException。
public:
XmlSchemaInferenceException(System::String ^ message, Exception ^ innerException, int lineNumber, int linePosition);
public XmlSchemaInferenceException(string message, Exception? innerException, int lineNumber, int linePosition);
public XmlSchemaInferenceException(string message, Exception innerException, int lineNumber, int linePosition);
new System.Xml.Schema.XmlSchemaInferenceException : string * Exception * int * int -> System.Xml.Schema.XmlSchemaInferenceException
Public Sub New (message As String, innerException As Exception, lineNumber As Integer, linePosition As Integer)
参数
- message
- String
对错误的说明。
- innerException
- Exception
一个 Exception 对象,该对象包含导致 XmlSchemaInferenceException该异常的原始异常。
- lineNumber
- Int32
导致 . 的 XML 文档中的 XmlSchemaInferenceException行号。
- linePosition
- Int32
导致 . 的 XML 文档中的 XmlSchemaInferenceException行位置。