System.Xml.Serialization.CodeIdentifiers.Clear Method

Removes all code entities or type mappings, including their names, from the System.Xml.Serialization.CodeIdentifiers instance's scope.

Syntax

public void Clear ()

Remarks

Reserved names, as added through the CodeIdentifiers.AddReserved(string) method, are not removed.

If you want to control the names of code entities that are bound to XML Schema or Web service definitions, use the associated attributes rather than creating an instance of the System.Xml.Serialization.CodeIdentifiers class. For a complete list, see Attributes That Control XML Serialization.

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