Serializes the specified object to an xml file.
Syntax
Visual Basic (Declaration) | |
---|
Public Shared Sub Serialize(Of T)( _
ByVal obj As T, _
ByVal filename As String _
) |
Visual Basic (Usage) | Copy Code |
---|
Dim obj As T
Dim filename As String
AddInUtils.Serialize(Of T)(obj, filename) |
Parameters
- obj
- The object to serialize.
- filename
- The xml to store the serialized object.
Type Parameters
- T
- The type of object to serialize.
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also