C# Uri UriSchemeGopher
Description
Uri UriSchemeGopher
specifies that the URI is accessed
through the Gopher protocol. This field is read-only.
Syntax
Uri.UriSchemeGopher
has the following syntax.
public static readonly string UriSchemeGopher
Example
The following example creates a Uri instance and determines whether the scheme is UriSchemeGopher.
/*from ww w. java 2 s.c om*/
using System;
public class MainClass{
public static void Main(String[] argv){
Uri address6 = new Uri("gopher://example.java2s.com/");
if (address6.Scheme == Uri.UriSchemeGopher)
Console.WriteLine("Uri is Gopher protocol");
}
}
The code above generates the following result.