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

ObexHeaderCollection.GetFourByteAsUnsigned Method 

Gets the value of the Four-byte header in the collection with the given header id, as an unsigned value.

[Visual Basic]
Public Function GetFourByteAsUnsigned( _
   ByVal headerId As ObexHeaderId _
) As UInt32
[C#]
public uint GetFourByteAsUnsigned(
   ObexHeaderId headerId
);

Parameters

headerId
The ObexHeaderId of the header to get. This must be a header id of type Four-byte, otherwise an error will occur.

Return Value

A UInt32 holding the value of the specified header. The companion function GetFourByteAsSigned return the value as an Int32.

Exceptions

Exception Type Condition
ArgumentException The specified Header ID is not of One-Byte type.
ArgumentException No header with specified Header Id is present in the collection.

See Also

ObexHeaderCollection Class | Brecham.Obex Namespace