Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.