Uri.WithAppendedPath(Uri, String) Method

Definition

Creates a new Uri by appending an already-encoded path segment to a base Uri.

[Android.Runtime.Register("withAppendedPath", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;", "")]
public static Android.Net.Uri? WithAppendedPath (Android.Net.Uri? baseUri, string? pathSegment);
[<Android.Runtime.Register("withAppendedPath", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;", "")>]
static member WithAppendedPath : Android.Net.Uri * string -> Android.Net.Uri

Parameters

baseUri
Uri

Uri to append path segment to

pathSegment
String

encoded path segment to append

Returns

Uri

a new Uri based on baseUri with the given segment appended to the path

Attributes

Exceptions

if baseUri is null

Remarks

Creates a new Uri by appending an already-encoded path segment to a base Uri.

Java documentation for android.net.Uri.withAppendedPath(android.net.Uri, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to