GetXmlSerializerAssemblyName Method (Type)

XmlSerializer.GetXmlSerializerAssemblyName Method (Type)

Note: This method is new in the .NET Framework version 2.0.

Returns the name of the assembly that contains one or more versions of the XmlSerializer especially created to serialize or deserialize the specified type.

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

public static string GetXmlSerializerAssemblyName (
	Type type
public static String GetXmlSerializerAssemblyName (
	Type type
public static function GetXmlSerializerAssemblyName (
	type : Type
) : String



The Type you are deserializing.

Return Value

The name of the assembly that contains an XmlSerializer for the type.

The XML Serializer Generator Tool (Sgen.exe) creates an XML serialization assembly for types in a specified assembly in order to improve the run-time performance of an XmlSerializer when it serializes or deserializes objects of the specified types. Use the GetXmlSerializerAssemblyName to return the name of such an assembly.

If you are distributing such an assembly as part of a client application that calls a Web service, you can apply the XmlSerializerAssemblyAttribute to the client type to specify the location and name of the assembly.

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

© 2015 Microsoft