Share via


IPacket Members

Include Protected Members
Include Inherited Members

Holds data and is used by objects that implement IDevicePacketStream to transfer data between a device agent application and a desktop computer.

The IPacket type exposes the following members.

Methods

 

Name

Description

Public method

IsEndOfPacket

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

Public method

ReadBool

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

Public method

ReadByte

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

Public method

ReadBytes

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

Public method

ReadChar

Reads a character from the 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 DataType enumeration value.

Public method

ReadInt32

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

Public method

ReadString

Reads a string from the 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

WriteBool

Writes a Boolean value to the object.

Public method

WriteByte

Writes a byte to the object.

Public method

WriteBytes

Writes an array of bytes to the object.

Public method

WriteChar

Writes a character to the object.

Public method

WriteInt32

Writes an integer to the object.

Public method

WriteString

Writes a string to the object.

Top

Properties

 

Name

Description

Public property

Count

Gets the total number of data objects in the packet.

Top

See Also

Reference

IPacket Interface

Microsoft.SmartDevice.DeviceAgentTransport Namespace