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.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version