Share via


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

有效值。

傳回

Exception

新建立的例外狀況。

備註

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

適用於