Name
SerializationInfo
Synopsis
SerializationInfo
objects are used by classes
that customize serialization behavior. The data required for each
member is the name of the member, its type, and its value. Within
a class’s ISerializable.GetObjectData()
block,
the AddValue()
method is used to add member
data. Deserialization is defined within a deserialization
constructor (see ISerializable
). It is specified by retrieving member data with GetValue()
, or one of the many other Get*
methods, and assigning the data to the
appropriate members.
Public NotInheritable Class SerializationInfo ' Public Constructors Public Sub New(ByVal type As Type, ByVal converter As IFormatterConverter) ' Public Instance Properties Public Property AssemblyName As String Public Property FullTypeName As String Public ReadOnly Property MemberCount As Integer ' Public Instance Methods Public Sub AddValue(ByVal name As String, ByVal value As Boolean) Public Sub AddValue(ByVal name As String, ByVal value As Byte) Public Sub AddValue(ByVal name As String, ByVal value As Char) Public Sub AddValue(ByVal name As String, ByVal value As Date) Public Sub AddValue(ByVal name As String, ByVal value As Decimal) Public Sub AddValue(ByVal name As String, ByVal value As Double) Public Sub AddValue(ByVal name As String, ByVal value As Short) Public Sub AddValue(ByVal name As String, ByVal value As Integer) Public Sub AddValue(ByVal name As String, ByVal value As Long) Public Sub AddValue(ByVal name As String, ByVal value As Object) ...
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.