This documentation is archived and is not being maintained.

CodeIdentifiers Class

This API 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

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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0