Scheme Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the scheme name for this URI.

Namespace:  System
Assembly:  System.Http (in System.Http.dll)

public string Scheme { get; }

Property Value

Type: System..::..String
A String that contains the scheme for this URI, converted to lowercase.

ExceptionCondition
InvalidOperationException

This instance represents a relative URI, and this property is valid only for absolute URIs.

The Scheme property returns the scheme used to initialize the Uri instance. This property does not indicate that the scheme used to initialize the Uri instance was recognized.

Show: