Share via


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)

Syntax

'Declaration
Public ReadOnly Property Scheme As String
public string Scheme { get; }
public:
property String^ Scheme {
    String^ get ();
}
member Scheme : string with get
function get Scheme () : String

Property Value

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

Exceptions

Exception Condition
InvalidOperationException

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

Remarks

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.

.NET Framework Security

See Also

Reference

Uri Class

System Namespace