Brecham.Obex — An OBEX library for the .NET Framework

ObexHeaderCollection Class

Contains OBEX protocol headers associated with a request or response.

For a list of all members of this type, see ObexHeaderCollection Members.

System.Object
   Brecham.Obex.ObexHeaderCollection

[Visual Basic]
Public Class ObexHeaderCollection
    Implements IEnumerable`1([Brecham.Obex.ObexHeaderId, Brecham.Obex, Version=1.5.1203.0, Culture=neutral, PublicKeyToken=0cefc6fe962033b6)), IEnumerable
[C#]
public class ObexHeaderCollection : 0, Culture=neutral, PublicKeyToken=0cefc6fe962033b6]], IEnumerable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Like WebHeaderCollection, but for OBEX rather than HTTP. OBEX headers have a one byte Header ID, and a value which is of one of four type: Unicode string, Byte sequence, a One byte value, and a four byte value. The Header IDs includes the type as its top two bits. Thus the collection is type-strict; on adding or accessing the collection it is an error if the value given does not match the type specified by the header id. The collection only allows one header of each Header ID, and maintains order so that the order that the headers are present in the PDU is maintained. As well as Add, Get, and the removal of entries, the collection supports enumeration of the Header IDs. It is safe to continue using the enumerator even if Remove has been called meanwhile; all the IDs that were present at enumerator creation will be returned by it.

Requirements

Namespace: Brecham.Obex

Assembly: Brecham.Obex (in Brecham.Obex.dll)

See Also

ObexHeaderCollection Members | Brecham.Obex Namespace