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

ObexHeaderCollection.GetFourByteAsSigned Method 

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

[Visual Basic]
Public Function GetFourByteAsSigned( _
   ByVal headerId As ObexHeaderId _
) As Integer
[C#]
public int GetFourByteAsSigned(
   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 Int32 holding the value of the specified header. The companion function GetFourByteAsUnsigned return the value as an UInt32.

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