System.Xml.Serialization.XmlSerializationWriter.CreateInvalidEnumValueException Method

Creates an InvalidOperationException for an invalid enumeration value.

Syntax

protected Exception CreateInvalidEnumValueException (object value, string typeName)

Parameters

value
An object that represents the invalid enumeration.
typeName
The XML type name.

Returns

The newly created exception.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0