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
- o
Type: System. . :: . .Object
The object you want to serialize.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.