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

ObexFolderListingParser.GetNextItem Method 

Reads the next folder-listing item, as an instance of either ObexFileItem, ObexFolderItem, or ObexParentFolderItem, which are all subclasses of ObexFolderListingItem.

[Visual Basic]
Public Function GetNextItem() As ObexFolderListingItem
[C#]
public ObexFolderListingItem GetNextItem();

Return Value

An instance of the respective subclass of ObexFolderListingItem holding the item's data. Returns null (/Nothing) when the end of the folder-listing document has been reached. If called again after that it throws the exception listed below.

Exceptions

Exception Type Condition
InvalidOperationException All the items have already been read by previous calls.
XmlException An error occurred while parsing the XML.
XmlSchemaException An error occurred while parsing the XML.
NotSupportedException On the Compact Framework (NETCF) this occurs when the XML document contains a DOCTYPE element. See the Programmer's Guide and the StripDocType property for more information.

See Also

ObexFolderListingParser Class | Brecham.Obex.Objects Namespace