XmlSerializationWriter.CreateMismatchChoiceException Metodo

Definizione

Crea un oggetto InvalidOperationException che indica che un valore per un elemento XML non corrisponde a un tipo di enumerazione.

Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.

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

Parametri

value
String

Valore non valido.

elementName
String

Nome dell'elemento XML con un valore non valido.

enumValue
String

Valore valido.

Valori restituiti

Eccezione appena creata.

Commenti

I membri protetti di XmlSerializationWriter sono destinati all'uso solo da classi derivate usate internamente all'interno dell'infrastruttura di serializzazione XML di .NET Framework.

Si applica a