Returns the name of the assembly that contains one or more versions of the XmlSerializer especially created to serialize or deserialize the specified type.
Assembly: System.Xml (in System.Xml.dll)
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _ Public Shared Function GetXmlSerializerAssemblyName ( _ type As Type _ ) As String
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")] public static string GetXmlSerializerAssemblyName( Type type )
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")] public: static String^ GetXmlSerializerAssemblyName( Type^ type )
[<PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")>] static member GetXmlSerializerAssemblyName : type:Type -> string
Parameters
- type
- Type: System.Type
The Type you are deserializing.
Return Value
Type: System.StringThe 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 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.
.NET Framework
Supported in: 4, 3.5, 3.0, 2.0.NET Framework Client Profile
Supported in: 4, 3.5 SP1Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.