CodeIdentifiers::Add Method (String^, Object^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Namespace:   System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

public:
void Add(
	String^ identifier,
	Object^ value
)

Parameters

identifier
Type: System::String^

A name that is used to index the code entity.

value
Type: System::Object^

The code entity or type mapping information.

Unlike the AddUnique method, the Add 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 CodeIdentifiers class. For a complete list, see Attributes That Control XML Serialization.

.NET Framework
Available since 1.1
Return to top
Show: