C# Uri UriSchemeHttps
Description
Uri UriSchemeHttps
specifies that the URI is accessed
through the Secure Hypertext Transfer Protocol (HTTPS). This field is read-only.
Syntax
Uri.UriSchemeHttps
has the following syntax.
public static readonly string UriSchemeHttps
Example
The following example creates a Uri instance and determines whether the scheme is UriSchemeHttps.
/*ww w.ja v a 2s . c o m*/
using System;
public class MainClass{
public static void Main(String[] argv){
Uri address8 = new Uri("https://example.java2s.com");
if (address8.Scheme == Uri.UriSchemeHttps)
Console.WriteLine("Uri is Https protocol.");
}
}
The code above generates the following result.