Helper method to assist in de-serializing .NET types in XML
Syntax
Visual Basic (Declaration) | |
---|
Public Shared Function DeserializeXml( _
ByVal xml As String, _
ByVal type As Type _
) As Object |
Visual Basic (Usage) | Copy Code |
---|
Dim xml As String
Dim type As Type
Dim value As Object
value = Utility.DeserializeXml(xml, type) |
Parameters
- xml
- String to deserialize in XML format
- type
- .NET Type to deserialize into
Return Value
.NET Type deserialized into an object (Use this object with a cast to get the correct .NET Type)
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also