Udostępnij za pośrednictwem


Uri.FromParts(String, String, String) Method

Definition

Creates an opaque Uri from the given components.

[Android.Runtime.Register("fromParts", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;", "")]
public static Android.Net.Uri? FromParts (string? scheme, string? ssp, string? fragment);
[<Android.Runtime.Register("fromParts", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;", "")>]
static member FromParts : string * string * string -> Android.Net.Uri

Parameters

scheme
String

of the URI

ssp
String

scheme-specific-part, everything between the scheme separator (':') and the fragment separator ('#'), which will get encoded

fragment
String

fragment, everything after the '#', null if undefined, will get encoded

Returns

Uri

Uri composed of the given scheme, ssp, and fragment

Attributes

Exceptions

if scheme or ssp is null

Remarks

Creates an opaque Uri from the given components. Encodes the ssp which means this method cannot be used to create hierarchical URIs.

Java documentation for android.net.Uri.fromParts(java.lang.String, java.lang.String, 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