Share via


Serialize Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Serializes an object of the specified type to a byte array of data.

Namespace:  Microsoft.SPOT
Assembly:  Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)

Syntax

'Declaration
Public Shared Function Serialize ( _
    o As Object, _
    t As Type _
) As Byte()
public static byte[] Serialize(
    Object o,
    Type t
)
public:
static array<unsigned char>^ Serialize(
    Object^ o, 
    Type^ t
)
static member Serialize : 
        o:Object * 
        t:Type -> byte[] 
public static function Serialize(
    o : Object, 
    t : Type
) : byte[]

Parameters

  • t
    Type: System. . :: . .Type
    The type of the object you want to serialize. This parameter can be nullNothingnullptrunita null reference (Nothing in Visual Basic).

Return Value

Type: array<System. . :: . .Byte> [] () [] []
A byte array containing data that represents the serialized object.

.NET Framework Security

See Also

Reference

Reflection Class

Microsoft.SPOT Namespace