This documentation is archived and is not being maintained.

CodeIdentifiers Class

This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Maintains a group of names for related code entities or type mappings that are generated by the .NET Framework's XML serialization infrastructure.

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

public class CodeIdentifiers
public class CodeIdentifiers
public class CodeIdentifiers
Not applicable.

The following list identifies tools and classes that use the CodeIdentifiers:

Instead of using the CodeIdentifiers class directly, use the aforementioned tools or classes. If you want to control the names of code entities that are bound to XML Schema or Web service definitions, use the associated attributes.

Depending on its scope, a CodeIdentifiers instance can be used to maintain the names of any of the items in the following list:

  • Types, methods, or fields.

  • The parameters and return value of a method corresponding to WSDL input and output messages.

  • Objects within a ServiceDescription instance that can be serialized to a WSDL document.

Typically, the class is used to avoid naming collisions between code entities within a particular scope, including collisions with the name of a containing entity.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0