XmlSerializationWriter.CreateMismatchChoiceException 方法

定義

建立 InvalidOperationException 表示某 XML 元素的值與列舉型別不符。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

protected:
 Exception ^ CreateMismatchChoiceException(System::String ^ value, System::String ^ elementName, System::String ^ enumValue);
protected Exception CreateMismatchChoiceException(string value, string elementName, string enumValue);
member this.CreateMismatchChoiceException : string * string * string -> Exception
Protected Function CreateMismatchChoiceException (value As String, elementName As String, enumValue As String) As Exception

參數

value
String

那個不成立的價值。

elementName
String

XML 元素名稱中值無效。

enumValue
String

有效價值。

傳回

新創造的例外。

備註

XmlSerializationWriter 的受保護成員僅供內部在 .NET Framework XML 序列化基礎架構中使用的衍生類別使用。

適用於