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

ObexHeaderCollection.GetString Method 

Gets the value of the Unicode String header in the collection with the given header id.

[Visual Basic]
Public Function GetString( _
   ByVal headerId As ObexHeaderId _
) As String
[C#]
public string GetString(
   ObexHeaderId headerId
);

Parameters

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

Return Value

A String holding the value of the specified header.

Exceptions

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

See Also

ObexHeaderCollection Class | Brecham.Obex Namespace