NET Logging Library
SerializeToXml<T> Method



KellermanSoftware.NetLoggingLibrary Namespace > ConfigurationLogic Class : SerializeToXml<T> Method
Serialize an object into XML and save to a file
Syntax
Public Shared Sub SerializeToXml(Of T As Class)( _
   ByVal value As T, _
   ByVal filePath As String _
) 
Dim value As T
Dim filePath As String
 
ConfigurationLogic.SerializeToXml(Of T)(value, filePath)
public static void SerializeToXml<T>( 
   T value,
   string filePath
)
where T: class
public:
static void SerializeToXmlgeneric<typename T>
( 
   T^ value,
   String^ filePath
) 
where T: ref class

Parameters

value
filePath

Type Parameters

T
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ConfigurationLogic Class
ConfigurationLogic Members