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.

[Visual Basic]
Overloads Public Sub SetPath( _
   ByVal backupFirst As BackupFirst, _
   ByVal folderName As String, _
   ByVal doNotCreateFolderIfDoesNotExist As IfFolderDoesNotExist _
)
[C#]
public void SetPath(
   BackupFirst backupFirst,
   string folderName,
   IfFolderDoesNotExist doNotCreateFolderIfDoesNotExist
);

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:

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