Brecham.Obex — An OBEX library for the .NET Framework
ObexClientSession.SetPath Method (BackupFirst, String, IfFolderDoesNotExist)
Do a SetPath command asking to move to the given child folder, with the given options.
Parameters
backupFirst
Whether the folder should be set to the parent before moving to the named folder.
folderName
A String containing the name of the child folder.
doNotCreateFolderIfDoesNotExist
Whether a new folder should be created if the named folder does not exist, or instead to fail in that case.
Remarks
Some responses seen on unsuccessful SETPATH operations against third-party devices are the following:
The named folder did not exist -
Response code 0xC4, NotFound.
The user in charge of the server disallowed the operation -
Response code 0xC1, Unauthorized.
Of course such an error response from the server is reported by an exception of the following form:
Brecham.Obex.ObexResponseException: Unexpected OBEX response code: 0xC1 (Unauthorized).
See Also
ObexClientSession Class | Brecham.Obex Namespace | ObexClientSession.SetPath Overload List