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

ObexHeaderCollection.Prepend Method (ObexHeaderId, UInt32)

Insert a header of One-byte or Four-byte type at the front of the collection.

[Visual Basic]
Overloads Public Sub Prepend( _
   ByVal headerId As ObexHeaderId, _
   ByVal value As UInt32 _
)
[C#]
public void Prepend(
   ObexHeaderId headerId,
   uint value
);

Parameters

headerId
The Header ID of the header to add.
value
A UInt32 value containing the content to add.

Remarks

There are separate headers types for One-byte and Four-byte integral values, equivalent to Byte and Int32/UInt32 respectively. This overload will be called for UInt32 variables. Int32 and Byte variables will call the other overload Prepend

Exceptions

Exception Type Condition
ArgumentException The Header ID does not represent an integral (One-byte/Four-byte) type.
ArgumentException A header of the given ID already exixts.
ArgumentOutOfRangeException A Header ID represent a One-Byte type, but the value is not a byte.

See Also

ObexHeaderCollection Class | Brecham.Obex Namespace | ObexHeaderCollection.Prepend Overload List