Copies the headers in the specified ObexHeaderCollection to the current ObexHeaderCollection.
ObexHeaderCollection. 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.
| Exception Type | Condition |
|---|---|
| ArgumentNullException |
headers is a null reference (Nothing in Visual Basic). |
| ArgumentException |
headers is a reference to the current collection. |
ObexHeaderCollection Class | Brecham.Obex Namespace