XmlSchemaInferenceException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 XmlSchemaInferenceException 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| 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的原始XmlSchemaInferenceException訊息,以及 XML 文件中錯誤的行號與行位置。 |
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的原始XmlSchemaInferenceException訊息,以及 XML 文件中錯誤的行號與行位置。
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
- linePosition
- Int32