C# Uri UriSchemeNews
Description
Uri UriSchemeNews
specifies that the URI is an Internet
news group and is accessed through the Network News Transport Protocol (NNTP).
This field is read-only.
Syntax
Uri.UriSchemeNews
has the following syntax.
public static readonly string UriSchemeNews
Example
The following example creates a Uri instance and determines whether the scheme is UriSchemeNews.
//from w w w. j av a 2s . c o m
using System;
public class MainClass{
public static void Main(String[] argv){
Uri address4 = new Uri("news:123456@java2s.com");
if (address4.Scheme == Uri.UriSchemeNews)
Console.WriteLine("Uri is an Internet news group");
}
}
The code above generates the following result.