System.Xml.Serialization.XmlSerializationWriter.CreateChoiceIdentifierValueException Method

Creates an InvalidOperationException that indicates an unexpected name for an element that adheres to an XML Schema choice element declaration.

Syntax

protected Exception CreateChoiceIdentifierValueException (string value, string identifier, string name, string ns)

Parameters

value
The name that is not valid.
identifier
The choice element declaration that the name belongs to.
name
The expected local name of an element.
ns
The expected namespace of an element.

Returns

The newly created exception.

Remarks

The protected members of System.Xml.Serialization.XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0