Share via


URI.Scheme Property

Definition

Returns the scheme component of this URI.

public string? Scheme { [Android.Runtime.Register("getScheme", "()Ljava/lang/String;", "")] get; }
[<get: Android.Runtime.Register("getScheme", "()Ljava/lang/String;", "")>]
member this.Scheme : string

Property Value

The scheme component of this URI, or null if the scheme is undefined

Attributes

Remarks

Returns the scheme component of this URI.

The scheme component of a URI, if defined, only contains characters in the alphanum category and in the string "-.+". A scheme always starts with an alpha character.

The scheme component of a URI cannot contain escaped octets, hence this method does not perform any decoding.

Java documentation for java.net.URI.getScheme().

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