Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Uri.UriSchemeHttps Field


Specifies that the URI is accessed through the Secure Hypertext Transfer Protocol (HTTPS). This field is read-only.

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

public static readonly string UriSchemeHttps

Field Value

Type: System.String

The following example creates a Uri instance and determines whether the scheme is UriSchemeHttps.

Uri address8 = new Uri("https://example.contoso.com");
if (address8.Scheme == Uri.UriSchemeHttps)
    Console.WriteLine("Uri is Https protocol.");

.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft