System.Xml.Serialization.CodeIdentifiers.Add Method

Adds a named code entity or type mapping to the System.Xml.Serialization.CodeIdentifiers instance's scope.

Syntax

public void Add (string identifier, object value)

Parameters

identifier
A name that is used to index the code entity.
value
The code entity or type mapping information.

Remarks

Unlike the CodeIdentifiers.AddUnique(string, object) method, the CodeIdentifiers.Add(string, object) method does not prevent naming collisions.

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