Export (0) Print
Expand All

Packet Class

Visual Studio 2008

Holds data and is used by the DevicePacketStream class to transfer data between a smart device and a desktop computer.

Namespace:  Microsoft.SmartDevice.Connectivity
Assembly:  Microsoft.SmartDevice.Connectivity (in Microsoft.SmartDevice.Connectivity.dll)

public class Packet

The Packet class can only hold objects of type byte, byte[], string, int, and char. The Packet class is not extensible to read and write custom objects. However, users can still transfer custom objects across the stream by either splitting the custom data type into basic data types or serializing the custom data types into a byte array.

No code example is currently available or this language may not be supported.

System.Object
  Microsoft.SmartDevice.Connectivity.Packet

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft