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

ObexHeaderCollection.AppendSkippingAnyDuplicates Method 

Copies the headers in the specified ObexHeaderCollection to the current ObexHeaderCollection.

[Visual Basic]
Public Sub AppendSkippingAnyDuplicates( _
   ByVal headers As ObexHeaderCollection _
)
[C#]
public void AppendSkippingAnyDuplicates(
   ObexHeaderCollection headers
);

Parameters

headers
The ObexHeaderCollection to copy to the current ObexHeaderCollection.

Remarks

If a header in headers already exists in the target ObexHeaderCollection, then it is not copied and remains in the source collection. Otherwise it is added to the end of the target collection and removed from the source. Thus, on completion the source collection contains only the headers that were duplicates.

Exceptions

Exception Type Condition
ArgumentNullException headers is a null reference (Nothing in Visual Basic).
ArgumentException headers is a reference to the current collection.

See Also

ObexHeaderCollection Class | Brecham.Obex Namespace