Packet Members

Include Protected Members
Include Inherited Members

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

The Packet type exposes the following members.

Constructors

 

Name

Description

Public method

Packet

Creates an empty packet.

Top

Methods

 

Name

Description

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Public method

IsEndOfPacket

Checks if the internal iterator has reached the end of the packet.

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

ReadBool

Reads a Boolean value from the Packet object and points the internal iterator to the next data object in the packet.

Public method

ReadByte

Reads a byte from the Packet object and points the internal iterator to the next data object in the packet.

Public method

ReadBytes

Reads an array of bytes from the Packet object and points the internal iterator to the next data object in the packet.

Public method

ReadChar

Reads a character from the Packet object and points the internal iterator to the next data object in the packet.

Public method

ReadDataType

Returns the data type of the current object in the packet as a DataType enumeration value.

Public method

ReadInt32

Reads an integer from the Packet object and points the internal iterator to the next data object in the packet.

Public method

ReadString

Reads a string from the Packet object and points the internal iterator to the next data object in the packet.

Public method

Reset

Resets the packet's internal iterator to point to the first data object in the packet. The next read operation reads the first data object in the packet.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Public method

WriteBool

Writes a Boolean value to the Packet object.

Public method

WriteByte

Writes a byte to the Packet object.

Public method

WriteBytes

Writes an array of bytes to the Packet object.

Public method

WriteChar

Writes a character to the Packet object.

Public method

WriteInt32

Writes an integer to the Packet object.

Public method

WriteString

Writes a string to the Packet object.

Top

Properties

 

Name

Description

Public property

Count

Gets the total number of data objects in the packet.

Top

See Also

Reference

Packet Class

Microsoft.SmartDevice.Connectivity Namespace